Files
fb-rss-bridge/.gitea/workflows/update_feed.yml
T
2026-07-20 11:37:24 +02:00

43 lines
1.2 KiB
YAML

name: Update RSS Feed
on:
schedule:
- cron: '0 6 * * *' # every day at 6:00 GMT (7CET/8CEST)
workflow_dispatch:
jobs:
update-feed:
runs-on: ubuntu-latest
permissions:
contents: write
env:
RUNNER_TOOL_CACHE: ${{ github.workspace }}/_work/_tool
AGENT_TOOLSDIRECTORY: ${{ github.workspace }}/_work/_tool
steps:
- name: Checkout repository
uses: https://gitea.com/actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up Python
uses: https://gitea.com/actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
with:
python-version: '3.9.11'
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Run Scrape Obec Žižkovo Pole
env:
FB_PAGE: "obec.zizkovopole"
run: |
python main.py "$FB_PAGE" --pages 2 --output "$FB_PAGE.xml"
- name: Commit and Push changes
run: |
git config --global user.name 'gitea-actions[bot]'
git config --global user.email 'gitea-actions[bot]@users.noreply.gitea.com'
git add *.xml
git commit -m "Update RSS feed(s)" || exit 0
git push