-
-
Notifications
You must be signed in to change notification settings - Fork 32
59 lines (47 loc) · 1.37 KB
/
grab.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: grab
on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
schedule:
- cron: '0 3 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- uses: actions/setup-python@v2
with:
python-version: '3.12'
- name: Download & merge xmltv files
env:
EPG_URLS: ${{ secrets.EPG_URLS }}
run: |
chmod +x ./build.sh
echo -e "--------------- downloading xmltv files\n"
epg_urls=(${EPG_URLS//;/ })
./build.sh --download "${epg_urls[@]}"
echo -e "--------------- merging xmltv files\n"
./build.sh --merge
- name: Update md files
run: |
echo -e "--------------- epg stats\n"
ls -lah
pip install pandas jinja2
python ./scripts/check.py .
./build.sh --stats
echo -e "--------------- generating md files\n"
chmod +x ./scripts/readme.sh && ./scripts/readme.sh
chmod +x ./scripts/missed_channels.sh && ./scripts/missed_channels.sh
- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.API_TOKEN }}
author_email: "heni.fazzani@gmail.com"
author_name: "Heni Fazzani"
branch: "master"