Deploy content to Pages #9009
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: Deploy content to Pages | |
on: | |
schedule: | |
- cron: 0,30 * * * * | |
env: | |
TZ: Asia/Shanghai | |
jobs: | |
Update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: GetTime | |
id: date | |
run: echo "::set-output name=date::$(date +'%Y-%m-%d %H:%M:%S CST')" | |
- name: Update | |
run: | | |
# 央视源 | |
rm -f CCTV.m3u && wget https://raw.githubusercontent.com/fanmingming/live/main/tv/m3u/ipv6.m3u -O CCTV.m3u | |
sed -i -n '/央视/,+1p' CCTV.m3u | |
sed -i '1i #EXTM3U' CCTV.m3u | |
sed -i '/^\s*$/d' CCTV.m3u | |
# 卫视源 | |
rm -f CNTV.m3u && wget https://raw.githubusercontent.com/fanmingming/live/main/tv/m3u/ipv6.m3u -O CNTV.m3u | |
sed -i '/央视/,+1d' CNTV.m3u | |
sed -i '/^\s*$/d' CNTV.m3u | |
# 成人源 | |
# rm -f Adult.m3u && wget http://adultiptv.net/chs.m3u -O Adult.m3u | |
# sed -i 's/XXX/成人/' Adult.m3u | |
# sed -i 's/AdultIPTV.net //g' Adult.m3u | |
# wget https://raw.githubusercontent.com/YanG-1989/m3u/main/Adult.m3u -O AdultVideo.txt | |
# sed -i -n '/日本/,+1p' AdultVideo.txt | |
# sed -i 's/日本/成人/' AdultVideo.txt | |
# echo'' >> Adult.m3u && cat AdultVideo.txt >> Adult.m3u | |
# rm -f AdultVideo.txt | |
# sed -i '/^\s*$/d' Adult.m3u | |
# 整合源 | |
rm -f IPTV.m3u && touch IPTV.m3u | |
cat CCTV.m3u >> IPTV.m3u | |
cat CNTV.m3u >> IPTV.m3u | |
#cat Adult.m3u >> IPTV.m3u | |
sed -i '/#EXTM3U/d' IPTV.m3u | |
sed -i '1i #EXTM3U' IPTV.m3u | |
sed -i '/^\s*$/d' IPTV.m3u | |
# 节目源 | |
rm -f EPG.xml && wget https://epg.112114.xyz/pp.xml -O EPG.xml | |
# echo "Auto Update IPTV in ${{ steps.date.outputs.date }}" > README.md | |
- name: Clean | |
run: | | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "shangzhouwan" | |
git checkout --orphan daily-build | |
git add -A | |
git commit -am "author:shangzhouwan --> ${{ steps.date.outputs.date }}" | |
#git branch -D daily-build | |
#git branch -m daily-build | |
- name: Push | |
run: git push -f origin daily-build |