-
Notifications
You must be signed in to change notification settings - Fork 8
54 lines (46 loc) · 1.33 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: UpdateEPG
on:
schedule:
- cron: '0 12 * * *'
push:
branches: [ main ]
workflow_dispatch:
pull_request:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: install
run: |
sudo apt update
sudo apt install python3 python3-requests python3-bs4 python3-tz xmltv-util
- name: run
env:
PROXY: ${{ secrets.PROXY }}
NOVA_TOKEN: ${{ secrets.NOVA_TOKEN }}
run: |
python main.py
tv_sort --by-channel --duplicate-error --output epg.xml epg-tmp.xml
echo '<!-- generated on '`date -u`' -->' >> epg.xml
gzip -k epg.xml
- name: Upload Gz
if: ${{ github.event_name != 'pull_request'}}
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./epg.xml.gz
asset_name: epg.xml.gz
tag: EPG
body: EPG
overwrite: true
- name: Upload Xml
if: ${{ github.event_name != 'pull_request'}}
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./epg.xml
asset_name: epg.xml
tag: EPG
body: EPG
overwrite: true