Skip to content

Update JSON File

Update JSON File #130

Workflow file for this run

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