fix: rename m4a files to correct extension and integrate auto-fixer i… #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |