🔁 Update Stable YARG #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Stable YARG | |
on: | |
repository_dispatch: | |
types: [ updateStableYARG, updateAll ] | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
updateStableYARG: | |
name: "Update Stable YARG" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
ref: publish | |
- name: "Setup Node" | |
uses: actions/setup-node@v3 | |
with: | |
node-version: latest | |
cache: npm | |
- name: "Install dependencies" | |
run: npm i | |
- name: "Generate new releases.json" | |
run: node methods/UpdateStableYARG.js | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: "Commit and save changes" | |
run: | | |
git config --global user.name "GitHub Actions" | |
git config --global user.email "[email protected]" | |
git add api/StableYARG/releases.json | |
git commit -m "chore: update StableYARG/release.json" | |
git push | |