Update .forgejo/workflows/generate-m3u.yml
Some checks failed
Generate M3U Playlist with Auto-Organization / build-and-organize (push) Failing after 1m9s

This commit is contained in:
stoney420 2025-06-28 07:52:51 +02:00
parent 1f510d961a
commit 884b6e1816

View file

@ -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')"