mirror of
https://github.com/Vencord/Vesktop.git
synced 2025-02-23 05:35:09 +00:00
Add workflow to automatically update version in vencord.dev repo
This commit is contained in:
parent
8938fe27b2
commit
670c62267e
1 changed files with 28 additions and 0 deletions
28
.github/workflows/update-vencord-dev.yml
vendored
Normal file
28
.github/workflows/update-vencord-dev.yml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
name: Update vencord.dev Vesktop version
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types:
|
||||||
|
- published
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Update scripts/_latestVesktopVersion.txt file in vencord.dev repo
|
||||||
|
run: |
|
||||||
|
git config --global user.name "$USERNAME"
|
||||||
|
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
|
|
||||||
|
git clone https://$USERNAME:$API_TOKEN@github.com/$GH_REPO.git repo
|
||||||
|
|
||||||
|
cd repo
|
||||||
|
echo "${{ github.event.release.tag_name }}" > scripts/_latestVesktopVersion.txt
|
||||||
|
|
||||||
|
git add scripts/_latestVesktopVersion.txt
|
||||||
|
git commit -m "Update Vesktop version to ${{ github.event.release.tag_name }}"
|
||||||
|
git push https://$USERNAME:$API_TOKEN@github.com/$GH_REPO.git
|
||||||
|
env:
|
||||||
|
API_TOKEN: ${{ secrets.VENCORD_DEV_GITHUB_TOKEN }}
|
||||||
|
GH_REPO: Vencord/vencord.dev
|
||||||
|
USERNAME: GitHub-Actions
|
Loading…
Add table
Reference in a new issue