AI 生成: 一个自动构建 APTV 直播源的脚本工具,每天自动更新央视、卫视、地方台频道,支持源过滤、去重和可用性检测。

This commit is contained in:
admin
2026-09-28 22:26:11 +08:00
commit 7a6618e546
11 changed files with 351 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
name: Daily Update Live Source
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: pip install -r requirements.txt
- name: Build live source
run: python main.py
- name: Commit and push
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add output/live.m3u
git diff --quiet && git diff --staged --quiet || git commit -m "chore: daily update live source"
git push