-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 932 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Daily RSS Update
on:
schedule:
- cron: '0 0 * * *' # Runs at midnight every day
workflow_dispatch: # Manual trigger option
jobs:
update_rss:
runs-on: ubuntu-latest
steps:
- name: Update package lists
run: sudo apt-get update
- name: Install Dutch locale
run: sudo apt-get install -y language-pack-nl
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Checkout repository
uses: actions/checkout@v2
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run script
run: python menu2rss.py
- name: Commit and push changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add menu_feed.xml
git commit -m "Update RSS feed"
git push