diff --git a/.github/workflows/merge-fancode-playlist.yml b/.github/workflows/merge-fancode-playlist.yml index aa74efc..63ae3bc 100644 --- a/.github/workflows/merge-fancode-playlist.yml +++ b/.github/workflows/merge-fancode-playlist.yml @@ -1,16 +1,19 @@ -name: Merge Fancode Playlist with My Playlist +name: Merge Fancode Playlist with My Playlist on Update on: - schedule: - - cron: '0 */6 * * *' # Runs every 6 hours - workflow_dispatch: # Allows manual trigger too + push: + # Listen for changes to the fancode.m3u file in the drmlive/fancode-live-events repo + branches: + - main # This assumes fancode.m3u is on the main branch of drmlive/fancode-live-events + paths: + - "fancode.m3u" # Triggers only if fancode.m3u file changes jobs: merge: runs-on: ubuntu-latest steps: - - name: Checkout Nadeko Repo + - name: Checkout My Repo uses: actions/checkout@v3 - name: Download Fancode Playlist