Skip to content

Convert M3U to TXT #12087

Convert M3U to TXT

Convert M3U to TXT #12087

name: Convert M3U to TXT
on:
schedule:
- cron: '*/30 * * * *'
jobs:
convert:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install m3u8 requests
- name: Run Python Script
run: python convert_m3u_to_txt.py
- name: Upload txt file as artifact
uses: actions/upload-artifact@v3
with:
name: tv.txt
path: ./tv.txt
- name: Commit and push changes
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add tv.txt
git commit -m "Update tv.txt [skip ci]"
git push