Download IPTV-Country & Asia & Chinese.m3u #2745
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: Download IPTV-Country & Asia & Chinese.m3u | |
on: | |
schedule: | |
- cron: 0 0/4 * * * | |
# push: | |
# branches: | |
# - main | |
workflow_dispatch: | |
jobs: | |
work: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Download asia.m3u | |
run: | | |
curl https://iptv-org.github.io/iptv/regions/asia.m3u > ./tv/asia.m3u | |
# 更新时间 | |
sed -i "/asia.m3u/c\\// update time: $(date -u -d '+8 hour' '+%Y.%m.%d %H:%M:%S')" ./tv/asia.m3u | |
- name: Download country.m3u | |
run: | | |
curl https://iptv-org.github.io/iptv/index.country.m3u > ./tv/country.m3u | |
# 更新时间 | |
sed -i "/country.m3u/c\\// update time: $(date -u -d '+8 hour' '+%Y.%m.%d %H:%M:%S')" ./tv/country.m3u | |
- name: Download chinese.m3u | |
run: | | |
curl https://iptv-org.github.io/iptv/languages/zho.m3u > ./tv/chinese.m3u | |
# 更新时间 | |
sed -i "/chinese.m3u/c\\// update time: $(date -u -d '+8 hour' '+%Y.%m.%d %H:%M:%S')" ./tv/chinese.m3u | |