Skip to content

fix: rename m4a files to correct extension and integrate auto-fixer i… #4

fix: rename m4a files to correct extension and integrate auto-fixer i…

fix: rename m4a files to correct extension and integrate auto-fixer i… #4

name: Generate Playlist
on:
push:
paths:
- 'mp3files/**'
workflow_dispatch: # Allows manual run via the GitHub UI Actions tab
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Generate M3U Playlist
run: python generate_playlist.py
- name: Commit and push changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add playlist.m3u
if git diff --staged --quiet; then
echo "No changes in playlist.m3u"
else
git commit -m "Auto-generate playlist.m3u [skip ci]"
git push
fi