Skip to content

Update

Update #23688

Workflow file for this run

name: Update
on:
schedule:
- cron: 0,30 * * * *
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 get_iptv.py
- name: Update time
run: |
echo "## ✨于 $DATE 更新
**🎉自用IPTV源**
https://ghfast.top/raw.githubusercontent.com/TianmuTNT/iptv/main/iptv.txt
https://ghfast.top/raw.githubusercontent.com/TianmuTNT/iptv/main/iptv.m3u
## ☁️ 国内高性能服务器推荐 Rainyun 雨云
### 🌟 [点击这里前往](https://www.rainyun.com/skymc_) 可获得5折优惠!
**🚀 为什么选择雨云?**
性能不虚标:实际测试中 CPU 性能稳定,内存 IO 表现出色,比肩海外同价 VPS;
价格实在:起步价极低(常有促销),且配置灵活,可根据需求弹性升级;
中文面板友好:无需折腾系统配置,新手也能轻松管理服务器;
节点丰富:提供多地线路,包括电信、移动、联通直连,适合延迟敏感型服务如 Minecraft;
适合长期稳定运行:Minecraft 服务器、网页服务、机器人宿主环境等都表现良好。" > README.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)/iptv.txt
git add $(pwd)/iptv.m3u
git add $(pwd)/README.md
git commit -m "Update on $DATE" --allow-empty
git push origin main
- name: Upload streams file
uses: actions/upload-artifact@v4
with:
name: iptv
path: iptv.txt