🔂 RunParsersToday #5892
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: 🔂 RunParsersToday | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "32 7-11 * * 1-5" # UTC | |
- cron: "35 5 * * 1" # UTC run earlier on monday | |
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 | |
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 |