Surface iptv-checker failed-channel list in CI

Add a job summary listing the failed channels and upload the full
online.m3u/failed.m3u results as a build artifact, instead of running
the checker and discarding its output.
pull/1133/head
Kálmán „KAMI” Szalai 2026-08-17 16:08:54 +02:00
parent 9f15b5859b
commit af63bbdafa
1 changed files with 26 additions and 1 deletions

View File

@ -47,5 +47,30 @@ jobs:
npm install -g iptv-checker || true npm install -g iptv-checker || true
mkdir -p output mkdir -p output
sudo apt-get install -y ffmpeg sudo apt-get install -y ffmpeg
iptv-checker -o output -p 100 -t 120000 ./playlist.m3u8 iptv-checker -o output -p 100 -t 120000 ./playlist.m3u8 || true
- name: Summarize checker results
if: always()
run: |
online=$(grep -c '^#EXTINF' output/online.m3u 2>/dev/null || echo 0)
failed=$(grep -c '^#EXTINF' output/failed.m3u 2>/dev/null || echo 0)
{
echo "## IPTV Checker results"
echo ""
echo "- Online: $online"
echo "- Failed: $failed"
echo ""
echo "### Failed channels"
echo '```'
grep '^#EXTINF' output/failed.m3u 2>/dev/null || echo "(none)"
echo '```'
} >> "$GITHUB_STEP_SUMMARY"
- name: Upload checker results
if: always()
uses: actions/upload-artifact@v4
with:
name: iptv-checker-results
path: output/
retention-days: 14