Update .github/workflows/merge-fancode-playlist.yml

This commit is contained in:
maskedwolff 2025-04-17 03:25:18 -04:00
parent 73a3375159
commit babb7d88fd

View file

@ -10,7 +10,7 @@ on:
jobs:
merge:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04 # Change to a specific version to avoid "waiting" issues
steps:
- name: Checkout My Repo
@ -26,19 +26,4 @@ jobs:
cat fancode_playlist.m3u >> merged_playlist.m3u
echo "" >> merged_playlist.m3u
echo "# --- Your Playlist: MaskedWolff/maskedwolf ---" >> merged_playlist.m3u
cat my_playlist.m3u >> merged_playlist.m3u
- name: Commit and Push Merged Playlist
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "github-actions@users.noreply.github.com"
# Pull the latest changes from the remote repository
git pull origin main --rebase || echo "No rebase needed"
# Add the merged playlist file
git add merged_playlist.m3u
# Commit the changes if there are updates
if git diff --cached --quiet; then
echo "
cat my_playlist.m3u_