Convert M3U to TXT #15402
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |