Update .forgejo/workflows/generate-m3u.yml
Some checks failed
Generate M3U Playlist with Auto-Organization / build-and-organize (push) Has been cancelled

This commit is contained in:
stoney420 2025-06-28 05:20:06 +02:00
parent 167e490de5
commit a9b0c1cd44

View file

@ -1,4 +1,4 @@
name: Enhanced IPTV Playlist with Discovery
name: Generate M3U Playlist with Auto-Organization
on:
push:
@ -7,7 +7,7 @@ on:
workflow_dispatch:
jobs:
enhance-and-discover:
build-and-organize:
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
@ -16,12 +16,12 @@ jobs:
- name: Configure Git
run: |
git config --local user.email "actions@forgejo.plainrock127.xyz"
git config --local user.name "IPTV Discovery Bot"
git config --local user.name "IPTV Playlist Bot"
- name: Setup Directories
- name: Basic Setup
run: |
echo "Setting up directory structure..."
mkdir -p reports/daily config
echo "Setting up directories..."
mkdir -p reports/daily
echo "Setup completed"
- name: Check Import File
@ -56,7 +56,7 @@ jobs:
DATE=$(date +%Y%m%d_%H%M%S)
REPORT="reports/daily/report_$DATE.md"
echo "# Enhanced IPTV Report" > "$REPORT"
echo "# Playlist Report" > "$REPORT"
echo "Generated: $(date)" >> "$REPORT"
echo "Channels: $CHANNELS" >> "$REPORT"
@ -77,6 +77,8 @@ jobs:
ls -t *.md | tail -n +4 | xargs rm -f
echo "Cleanup done"
fi
else
echo "No reports to clean"
fi
cd ../..
@ -97,7 +99,7 @@ jobs:
if [ -f playlist.m3u ]; then
CHANNELS=$(grep -c "^#EXTINF" playlist.m3u || echo "0")
fi
git commit -m "📺 Enhanced IPTV with $CHANNELS channels - $(date '+%Y-%m-%d %H:%M')"
git commit -m "📺 Updated playlist with $CHANNELS channels - $(date '+%Y-%m-%d %H:%M')"
git push
echo "Changes committed"
fi
@ -109,4 +111,5 @@ jobs:
CHANNELS=$(grep -c "^#EXTINF" playlist.m3u || echo "0")
echo "✅ Playlist has $CHANNELS channels"
fi
echo "✅ Ready for discovery enhancement"
echo "✅ Reports updated"
echo "✅ Repository cleaned"