From 95c0847a770852a6600088206e51ba628ff78f53 Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Sun, 25 Aug 2024 17:12:28 +0800 Subject: [PATCH] =?UTF-8?q?Create=20=E9=A2=91=E9=81=93=E8=8E=B7=E5=8F=96.y?= =?UTF-8?q?ml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/频道获取.yml | 38 ++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/频道获取.yml diff --git a/.github/workflows/频道获取.yml b/.github/workflows/频道获取.yml new file mode 100644 index 0000000..abf07d5 --- /dev/null +++ b/.github/workflows/频道获取.yml @@ -0,0 +1,38 @@ +name: 组播采集合并 + +on: + schedule: + - cron: '45 10,22 * * *' # 这里更改自动运行的时间#_ud + 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 Beautifulsoup4 func_timeout replace + - name: Run iptv + run: python ${{ github.workspace }}/py/getm3u.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