Update JSON File #115
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 JSON File | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
update-json: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.PAT_TOKEN }} | |
- name: Download JSON file | |
run: curl -o champions.json https://cdn.merakianalytics.com/riot/lol/resources/latest/en-US/champions.json | |
- name: Commit and push changes | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "megadoxs" | |
git add champions.json | |
git commit -m 'Update JSON file' | |
git push |