Skip to content

更新ipv6.m3u

更新ipv6.m3u #768

name: 更新ipv6.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: 更新 ipv6.m3u
run: |
curl https://raw.githubusercontent.com/suxuang/myIPTV/main/ipv6.m3u > ./tv/ipv6.m3u
# 更新时间
sed -i "/tv.txt/c\\// update time: $(date -u -d '+8 hour' '+%Y.%m.%d %H:%M:%S')" ./tv/ipv6.m3u
- name: Commit And Push
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git add --all
git commit -m "更新 ipv6.m3u"
git push origin main