Update Records #296
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 Records | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setting up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: Install requirements | |
run: pip install -r requirements.txt | |
- name: Run | |
run: | | |
bash downloader/worldrecords-senior.sh | |
bash downloader/arearecords-senior.sh | |
bash downloader/nationalrecords-senior.sh | |
bash downloader/worldrecords-u20.sh | |
git config user.name Github Action | |
git config user.email [email protected] | |
git add records/* | |
timestamp=$(date -u) | |
git commit -m "update records data: ${timestamp}" || exit 0 | |
git push |