Add .forgejo/workflows/m3u-checker.yml

This commit is contained in:
SpaceMonkey 2025-06-10 22:54:34 +02:00
parent 980399c48e
commit 246c220f41

View file

@ -0,0 +1,27 @@
name: M3U Playlist Dead Link Checker
on:
schedule:
# Run daily at 2 AM UTC
- cron: '0 2 * * *'
workflow_dispatch:
# Allow manual triggering
push:
paths:
- 'mystique.m3u'
# Trigger when the playlist file changes
jobs:
check-m3u-links:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Check M3U playlist for dead links
run: node .forgejo/scripts/check_m3u_links.js