🔁 Update Setlists #4
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 Setlists | |
on: | |
repository_dispatch: | |
types: [ updateSetlists, updateAll ] | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
updateSetlists: | |
name: "Update Setlists" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v3 | |
- name: "Fetch files from YARC-Official/Official-Setlist-Public" | |
uses: actions/checkout@v3 | |
with: | |
repository: "YARC-Official/Official-Setlist-Public" | |
sparse-checkout: setlists | |
path: api | |
- name: "Commit and save changes" | |
run: | | |
git config --global user.name "GitHub Actions" | |
git config --global user.email "[email protected]" | |
git add api/setlists/* | |
git commit -m "chore: update setlists" | |
git push | |