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:
|
on:
|
||||||
push:
|
push:
|
||||||
# Listen for changes to the fancode.m3u file in the drmlive/fancode-live-events repo
|
|
||||||
branches:
|
branches:
|
||||||
- main # This assumes fancode.m3u is on the main branch of drmlive/fancode-live-events
|
- main # This assumes fancode.m3u is on the main branch of drmlive/fancode-live-events
|
||||||
paths:
|
paths:
|
||||||
- "fancode.m3u" # Triggers only if fancode.m3u file changes
|
- "fancode.m3u" # Triggers only if fancode.m3u file changes
|
||||||
|
workflow_dispatch: # Allows manual trigger from the GitHub UI
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
merge:
|
merge:
|
||||||
|
@ -41,8 +41,4 @@ jobs:
|
||||||
|
|
||||||
# Commit the changes if there are updates
|
# Commit the changes if there are updates
|
||||||
if git diff --cached --quiet; then
|
if git diff --cached --quiet; then
|
||||||
echo "No changes to commit"
|
echo "
|
||||||
else
|
|
||||||
git commit -m "Auto-merged Fancode playlist with My Playlist"
|
|
||||||
git push origin main
|
|
||||||
fi
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue