Files
lalifeier-IPTV/.github/workflows/iptv_udpxy_rtp.yml
lalifeier f9d687c39d init
2025-03-15 17:28:34 +08:00

51 lines
1.2 KiB
YAML

name: Auto Update udpxy RTP IPTV
on:
workflow_dispatch:
schedule:
- cron: "5 4 * * *"
jobs:
iptv:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
run: |
pip install -r requirements.txt && playwright install && playwright install-deps
- name: Get Currrent Date
run: echo "DATE=$(date +'%Y-%m-%d %H:%M:%S %Z')" >> $GITHUB_ENV
- name: Run Update udpxy IPTV
run: |
python main.py --type udpxy --rtp
- name: Git Auto Commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Auto Update IPTV
branch: main
push_options: '--force'
- name: Delete workflow runs
uses: MajorScruffy/delete-old-workflow-runs@v0.3.0
with:
repository: ${{ github.repository }}
workflow: ".github/workflows/iptv_udpxy_rtp.yml"
older-than-seconds: 3600
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}