Auto Update Recent #1364
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: Auto Update Recent | |
on: | |
schedule: | |
- cron: '15 4,8,12,16,20 * * *' | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
recent-updates: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Configure Git | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
pip install numpy pandas xmltodict requests | |
- name: Run update script | |
run: | | |
bash update.sh | |
- name: Add changes to git | |
run: | | |
git ls-files --deleted | xargs git add --all **/*.zip **/*.csv | |
- name: Commit and push | |
run: | | |
git commit -m "Automated update" || echo "No changes to commit" | |
git push || echo "No changes to push" |