diff --git a/.forgejo/workflows/generate-m3u.yml b/.forgejo/workflows/generate-m3u.yml index 4fc1f3e..36c9bca 100644 --- a/.forgejo/workflows/generate-m3u.yml +++ b/.forgejo/workflows/generate-m3u.yml @@ -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" \ No newline at end of file + echo "✅ Reports updated" + echo "✅ Repository cleaned" \ No newline at end of file