forked from Mystique-Play/Mystique
Cleanup m3u file workflow
This commit is contained in:
parent
d1e92ec28c
commit
aa6bc59103
2 changed files with 54 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue