Update .forgejo/workflows/generate-m3u.yml
Some checks failed
Generate M3U Playlist with Auto-Organization / build-and-organize (push) Failing after 1m9s
Some checks failed
Generate M3U Playlist with Auto-Organization / build-and-organize (push) Failing after 1m9s
This commit is contained in:
parent
1f510d961a
commit
884b6e1816
1 changed files with 3 additions and 0 deletions
|
@ -39,6 +39,9 @@ jobs:
|
||||||
git add .
|
git add .
|
||||||
if ! git diff-index --quiet HEAD; then
|
if ! git diff-index --quiet HEAD; then
|
||||||
echo "Changes detected, committing..."
|
echo "Changes detected, committing..."
|
||||||
|
# Fetch latest changes from remote and rebase local changes on top
|
||||||
|
git pull --rebase origin main
|
||||||
|
|
||||||
# Get channel count for commit message
|
# Get channel count for commit message
|
||||||
CHANNELS=$(grep -c "^#EXTINF" playlist.m3u || echo "0")
|
CHANNELS=$(grep -c "^#EXTINF" playlist.m3u || echo "0")
|
||||||
git commit -m "📺 Updated playlist with $CHANNELS channels - $(date '+%Y-%m-%d %H:%M')"
|
git commit -m "📺 Updated playlist with $CHANNELS channels - $(date '+%Y-%m-%d %H:%M')"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue