Update .forgejo/workflows/generate-m3u.yml
Some checks failed
Generate M3U Playlist with Auto-Organization / build-and-organize (push) Has been cancelled
Some checks failed
Generate M3U Playlist with Auto-Organization / build-and-organize (push) Has been cancelled
This commit is contained in:
parent
167e490de5
commit
a9b0c1cd44
1 changed files with 12 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
||||||
name: Enhanced IPTV Playlist with Discovery
|
name: Generate M3U Playlist with Auto-Organization
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -7,7 +7,7 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
enhance-and-discover:
|
build-and-organize:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
|
@ -16,12 +16,12 @@ jobs:
|
||||||
- name: Configure Git
|
- name: Configure Git
|
||||||
run: |
|
run: |
|
||||||
git config --local user.email "actions@forgejo.plainrock127.xyz"
|
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: |
|
run: |
|
||||||
echo "Setting up directory structure..."
|
echo "Setting up directories..."
|
||||||
mkdir -p reports/daily config
|
mkdir -p reports/daily
|
||||||
echo "Setup completed"
|
echo "Setup completed"
|
||||||
|
|
||||||
- name: Check Import File
|
- name: Check Import File
|
||||||
|
@ -56,7 +56,7 @@ jobs:
|
||||||
DATE=$(date +%Y%m%d_%H%M%S)
|
DATE=$(date +%Y%m%d_%H%M%S)
|
||||||
REPORT="reports/daily/report_$DATE.md"
|
REPORT="reports/daily/report_$DATE.md"
|
||||||
|
|
||||||
echo "# Enhanced IPTV Report" > "$REPORT"
|
echo "# Playlist Report" > "$REPORT"
|
||||||
echo "Generated: $(date)" >> "$REPORT"
|
echo "Generated: $(date)" >> "$REPORT"
|
||||||
echo "Channels: $CHANNELS" >> "$REPORT"
|
echo "Channels: $CHANNELS" >> "$REPORT"
|
||||||
|
|
||||||
|
@ -77,6 +77,8 @@ jobs:
|
||||||
ls -t *.md | tail -n +4 | xargs rm -f
|
ls -t *.md | tail -n +4 | xargs rm -f
|
||||||
echo "Cleanup done"
|
echo "Cleanup done"
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
echo "No reports to clean"
|
||||||
fi
|
fi
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|
||||||
|
@ -97,7 +99,7 @@ jobs:
|
||||||
if [ -f playlist.m3u ]; then
|
if [ -f playlist.m3u ]; then
|
||||||
CHANNELS=$(grep -c "^#EXTINF" playlist.m3u || echo "0")
|
CHANNELS=$(grep -c "^#EXTINF" playlist.m3u || echo "0")
|
||||||
fi
|
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
|
git push
|
||||||
echo "Changes committed"
|
echo "Changes committed"
|
||||||
fi
|
fi
|
||||||
|
@ -109,4 +111,5 @@ jobs:
|
||||||
CHANNELS=$(grep -c "^#EXTINF" playlist.m3u || echo "0")
|
CHANNELS=$(grep -c "^#EXTINF" playlist.m3u || echo "0")
|
||||||
echo "✅ Playlist has $CHANNELS channels"
|
echo "✅ Playlist has $CHANNELS channels"
|
||||||
fi
|
fi
|
||||||
echo "✅ Ready for discovery enhancement"
|
echo "✅ Reports updated"
|
||||||
|
echo "✅ Repository cleaned"
|
Loading…
Add table
Add a link
Reference in a new issue