-
Notifications
You must be signed in to change notification settings - Fork 4
59 lines (59 loc) · 1.83 KB
/
EPG.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: Make IPTV EPG
on:
schedule:
- cron: "0 16 * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Download WebGrab+Plus
run: |
sudo apt-get install -y dotnet-runtime-7.0
wget http://webgrabplus.com/sites/default/files/download/SW/V5.2.0/WebGrabPlus_V5.2_install.tar_0.gz
- name: Extract WebGrabPlus_V5.2_install.tar_0.gz
run: |
tar -zxvf WebGrabPlus_V5.2_install.tar_0.gz
- name: Install WebGrab+Plus
run: |
cd .wg++
./install.sh
- name: Download WebGrab++.config.xml
run: |
cd .wg++
wget -N https://raw.githubusercontent.com/LiuYi0526/IPTVnew/main/WebGrab++.config.xml
- name: Run
run: |
cd .wg++
./run.net.sh
# - name: Download Other EPG
# run: |
# cd .wg++
# wget http://epg.51zmt.top:8000/e.xml
# wget https://raw.githubusercontent.com/epgshare01/share01/master/epg_ripper_HK1.xml.gz
# gunzip ./epg_ripper_HK1.xml.gz
# - name: Install xmltv
# run: |
# sudo apt update
# sudo apt -y install xmltv
# - name: Merge EPG
# run: |
# cd .wg++
# tv_cat guide.xml epg_ripper_HK1.xml > HK.xml
# tv_cat HK.xml e.xml > guide_merge.xml
- name : Upload artifact
uses: actions/upload-artifact@master
with:
name: guide.xml
path: .wg++/guide.xml
- name: Git push assets to "EPG" branch
run: |
cd .wg++
git init
git config --local user.name "actions"
git config --local user.email "[email protected]"
git checkout -b EPG
git add .
git commit -m "Update EPG"
git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
git push -f -u origin EPG