Update .github/workflows/merge-fancode-playlist.yml
This commit is contained in:
parent
1212563978
commit
73a3375159
1 changed files with 2 additions and 6 deletions
8
.github/workflows/merge-fancode-playlist.yml
vendored
8
.github/workflows/merge-fancode-playlist.yml
vendored
|
@ -2,11 +2,11 @@ name: Merge Fancode Playlist with My Playlist on Update
|
|||
|
||||
on:
|
||||
push:
|
||||
# Listen for changes to the fancode.m3u file in the drmlive/fancode-live-events repo
|
||||
branches:
|
||||
- main # This assumes fancode.m3u is on the main branch of drmlive/fancode-live-events
|
||||
paths:
|
||||
- "fancode.m3u" # Triggers only if fancode.m3u file changes
|
||||
workflow_dispatch: # Allows manual trigger from the GitHub UI
|
||||
|
||||
jobs:
|
||||
merge:
|
||||
|
@ -41,8 +41,4 @@ jobs:
|
|||
|
||||
# Commit the changes if there are updates
|
||||
if git diff --cached --quiet; then
|
||||
echo "No changes to commit"
|
||||
else
|
||||
git commit -m "Auto-merged Fancode playlist with My Playlist"
|
||||
git push origin main
|
||||
fi
|
||||
echo "
|
||||
|
|
Loading…
Add table
Reference in a new issue