From dfbfeb57d1d34310fd1d05ef166c48d05e82ab13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A1lm=C3=A1n=20=E2=80=9EKAMI=E2=80=9D=20Szalai?= Date: Sun, 8 Mar 2026 07:38:53 +0100 Subject: [PATCH] Use current branch instead of hardcoded master for push Replace hardcoded origin/master reference with @{u} (upstream of current branch) for the diff check, and use HEAD for the push target so the workflow works correctly on any branch. --- .github/workflows/update_playlist.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update_playlist.yml b/.github/workflows/update_playlist.yml index af5c244..64ff68b 100644 --- a/.github/workflows/update_playlist.yml +++ b/.github/workflows/update_playlist.yml @@ -18,4 +18,4 @@ jobs: python3 ./make_playlist.py git add . git diff --staged --quiet || git commit --quiet -m "Update Playlist (GitHub Actions)" - git diff --quiet HEAD origin/master || git push -f origin master + git diff --quiet HEAD @{u} || git push -f origin HEAD