Country specific playlists

This commit is contained in:
SpaceMonkey 2025-01-29 22:59:35 +00:00
parent 69c4f53f18
commit 223e67123b
2 changed files with 88 additions and 2 deletions

View file

@ -28,10 +28,21 @@ jobs:
- name: Run M3U linter
run: m3u-linter --config .forgejo/scripts/m3u-linter.config.json mystique.m3u
- name: Split into group playlists
run: node .forgejo/scripts/split-m3u.js mystique.m3u
- name: Commit changes if file was modified
- name: Commit changes to main playlist file
run: |
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 "Auto-format and sort M3U file" && git push)
git diff --quiet && git diff --staged --quiet || (git commit -m "Auto-format and sort M3U file")
- name: Commit changes to specific country files
run: |
git config --global user.name 'Forgejo Actions Bot'
git config --global user.email 'forgejo-actions[bot]@noreply.forgejo.org'
git add countries
git diff --quiet && git diff --staged --quiet || (git commit -m "Update of country specific playlists" && git push)