Create main.yml

This commit is contained in:
frxz751113
2024-08-09 03:22:24 +08:00
committed by GitHub
parent f5bc270d6e
commit 3de50ba11b
+44
View File
@@ -0,0 +1,44 @@
name: 组播采集合并
on:
schedule:
- cron: '40 */8 * * *' # 这里更改自动运行的时间#_udp
workflow_dispatch:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Upgrade pip and install dependencies
run: |
pip install --upgrade pip
pip install selenium requests futures eventlet opencv-python Beautifulsoup4 translate termcolor func_timeout replace input opencc pypinyin pytz tqdm
- name: Run iptv
run: python ${{ github.workspace }}/rtp/iptv_udp.py
#run: python ${{ github.workspace }}/rtp/iptv.py
# 提交和推送的步骤,不再检查文件是否发生变化
- name: Commit and push changes
run: |
git config --local user.email "actions@126.com"
git config --local user.name "GitHub Action"
git add .
# 即使没有文件改变,也会提交一个空的提交
git commit --allow-empty -m "Scheduled workflow run"
git pull --rebase
git push -f