Cleanup m3u file workflow

This commit is contained in:
SpaceMonkey 2025-01-29 18:21:16 +00:00
parent d1e92ec28c
commit aa6bc59103
2 changed files with 54 additions and 1 deletions

View file

@ -19,6 +19,9 @@ jobs:
- name: Install m3u-linter
run: npm install -g m3u-linter
- name: Basic M3U cleanup
run: node .forgejo/scripts/cleanup-m3u.js mystique.m3u
- name: Sort M3U file
run: node .forgejo/scripts/sort-m3u.js mystique.m3u
@ -31,4 +34,4 @@ jobs:
git config --global user.name 'Forgejo Actions Bot'
git config --global user.email 'forgejo-actions[bot]@noreply.forgejo.org'
git add mystique.m3u
git diff --quiet && git diff --staged --quiet || (git commit -m "Sort M3U by group-title" && git push)
git diff --quiet && git diff --staged --quiet || (git commit -m "Auto-format and sort M3U file" && git push)