Skip to content

🔂 RunParsersToday #10976

🔂 RunParsersToday

🔂 RunParsersToday #10976

name: 🔂 RunParsersToday
on:
workflow_dispatch:
schedule:
- cron: "16,46 3-12 * * 1-5" # UTC
concurrency:
group: parsers-${{ github.ref }}
cancel-in-progress: true
jobs:
generateXMLFeedsToday:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install requirements.txt
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: git config
run: |
git config --global user.name github-actions
git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com
git pull --ff-only
- name: Run parsers & update xml feeds
env:
HEIDELBERG_AUTH: ${{ secrets.HEIDELBERG_AUTH }}
MANNHEIM_AUTH: ${{ secrets.MANNHEIM_AUTH }}
run: |
python updateFeeds.py -today
- name: git commit & push
run: |
git add docs
# Use "|| true" or "--allow-empty" otherwise the action fails for empty commits
git commit -m "Updated xml feeds" || true
git push
- name: Test files in github pages
run: |
python tests/test_ghpages.py