29 lines
1 KiB
YAML
29 lines
1 KiB
YAML
name: Merge Fancode Playlist with My Playlist on Update
|
|
|
|
on:
|
|
push:
|
|
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
|
|
workflow_dispatch: # Allows manual trigger from the GitHub UI
|
|
|
|
jobs:
|
|
merge:
|
|
runs-on: ubuntu-22.04 # Change to a specific version to avoid "waiting" issues
|
|
|
|
steps:
|
|
- name: Checkout My Repo
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Download Fancode Playlist
|
|
run: |
|
|
curl -L "https://raw.githubusercontent.com/drmlive/fancode-live-events/main/fancode.m3u" -o fancode_playlist.m3u
|
|
|
|
- name: Merge Playlists with Headers
|
|
run: |
|
|
echo "# --- Fancode Playlist: drmlive/fancode-live-events ---" > merged_playlist.m3u
|
|
cat fancode_playlist.m3u >> merged_playlist.m3u
|
|
echo "" >> merged_playlist.m3u
|
|
echo "# --- Your Playlist: MaskedWolff/maskedwolf ---" >> merged_playlist.m3u
|
|
cat my_playlist.m3u_
|