-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (32 loc) · 954 Bytes
/
epg-grabber.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
33
34
35
36
37
38
39
name: Update EPG
on:
schedule:
# Runs twice a day
- cron: "0 0,12 * * *"
# Add a manual trigger
workflow_dispatch:
jobs:
update-files:
runs-on: ubuntu-latest
steps:
- name: Checkout repository (no history)
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install requests
- name: Run EPG grabber script
run: |
python epg-grabber/getEpgs.py
- name: Force commit and push the changes (no history)
run: |
git config --global user.name "actions-user"
git config --global user.email "[email protected]"
git add epg.xml epg.xml.gz
git commit -m "Update EPG"
git push --force # Force push to overwrite the previous commit