Update data/*.json #1272
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 data/*.json" | |
on: | |
schedule: | |
- cron: "0 1 * * *" | |
workflow_dispatch: | |
jobs: | |
update-data: | |
name: Run scripts/update_data.py | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
name: Checkout repo | |
with: | |
ref: theData | |
token: ${{ secrets.REPO_TOKEN }} | |
- name: Setup Python | |
uses: actions/[email protected] | |
with: | |
python-version: "3.7" | |
- name: Run script | |
run: | | |
python3 scripts/update_data.py | |
- name: Commit changes | |
uses: EndBug/[email protected] | |
with: | |
message: 'Update data/*.json stats' | |
default_author: github_actions | |
branch: theData |