Skip to content

Periodic Data Update #12

Periodic Data Update

Periodic Data Update #12

Workflow file for this run

name: Periodic Data Update
on:
schedule:
- cron: '0 * * * *'
workflow_dispatch:
permissions:
contents: write
jobs:
update-data:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run data update scripts
run: |
python ./tools/update-builds.py
python ./tools/update-tag-by-version.py
- name: Commit changes if there are any
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add v1/
git diff --quiet && git diff --staged --quiet || git commit -m "Automatic data update $(date +'%Y-%m-%d %H:%M:%S')"
git push