xcz/.github/workflows/deepseek.yml
2025-03-25 17:21:17 +08:00

75 lines
1.9 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: deepseek-iptv
on:
schedule:
- cron: '30 5 * * 1,3'
workflow_dispatch:
permissions:
contents: write
env:
TZ: Asia/Shanghai
jobs:
Update:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Get time
run: echo "DATE=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pandas requests
- name: Run script
run: |
python deepseek-iptv.py
- name: Update time
run: |
echo "## ✨于 $DATE 更新
## 🎉最新可用IPTV源觉得好用请点个Star吧这对我非常重要
### 🎈用法如下
**安装一个IPTV客户端其它平台上有相关教程**
**IPTV源网址TXT** https://ghfast.top/raw.githubusercontent.com/alantang1977/X/main/mytv.txt
**IPTV源网址M3U** https://ghfast.top/raw.githubusercontent.com/alantang1977/X/main/mytv.m3u
![Star History Chart](https://api.star-history.com/svg?repos=alantang1977/live)" > READMEb.md
- name: List files in workspace
run: ls -la
- name: Git status
run: git status
- name: Configure Git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Commit and Push changes
run: |
git add $(pwd)/mytv.txt
git add $(pwd)/mytv.m3u
git add $(pwd)/READMEb.md
git commit -m "Update on $DATE" --allow-empty
git push origin main
- name: Upload streams file
uses: actions/upload-artifact@v4
with:
name: mytv
path: mytv.txt