From 41ca3bb7d9123458a9c560cf1ffe744eb154d4b3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 19 Jun 2026 14:41:59 +0000 Subject: [PATCH] Add daily playlist refresh workflow --- .github/workflows/update_playlist.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update_playlist.yml b/.github/workflows/update_playlist.yml index 64ff68b..3acd995 100644 --- a/.github/workflows/update_playlist.yml +++ b/.github/workflows/update_playlist.yml @@ -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