Make IPTV EPG #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |