Skip to content

Auto Update Recent

Auto Update Recent #24

Workflow file for this run

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"