forked from Mystique-Play/Mystique
Add .forgejo/workflows/m3u-checker.yml
This commit is contained in:
parent
980399c48e
commit
246c220f41
1 changed files with 27 additions and 0 deletions
27
.forgejo/workflows/m3u-checker.yml
Normal file
27
.forgejo/workflows/m3u-checker.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue