Add daily playlist refresh workflow

pull/1081/head
copilot-swe-agent[bot] 2026-06-19 14:41:59 +00:00 committed by GitHub
parent 101c05451d
commit 41ca3bb7d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 4 deletions

View File

@ -3,10 +3,15 @@ name: Update playlist
on:
push:
branches: [ master ]
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
permissions:
contents: write
jobs:
update-plalist:
update-playlist:
runs-on: ubuntu-latest
steps:
@ -16,6 +21,7 @@ jobs:
git config user.name "PlaylistBot" || true
git config user.email "playlistbot@users.noreply.github.com" || true
python3 ./make_playlist.py
git add .
git diff --staged --quiet || git commit --quiet -m "Update Playlist (GitHub Actions)"
git diff --quiet HEAD @{u} || git push -f origin HEAD
git add playlist.m3u8 playlists
git diff --staged --quiet && exit 0
git commit --quiet -m "Update Playlist (GitHub Actions)"
git push origin HEAD:master