-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 946 Bytes
/
Copy pathchannels-epg-grabber.yml
File metadata and controls
37 lines (30 loc) · 946 Bytes
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
name: channels-epg-grabber
on:
schedule:
- cron: '0 */12 * * *'
workflow_dispatch:
jobs:
epg-grabber:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: pip install requests
- name: Run epg grabber
run: cd epgs && python daddylive-channels-epg-grabber.py
- name: Commit and push changes
run: |
git config --global user.name "actions-user"
git config --global user.email "actions@github.com"
git add epgs/daddylive-channels-epg.xml epgs/daddylive-channels-epg.xml.gz
git diff --staged --quiet || git commit -m "Update channels epg"
git push --force