Update .github/workflows/merge-fancode-playlist.yml
This commit is contained in:
parent
73a3375159
commit
babb7d88fd
1 changed files with 2 additions and 17 deletions
19
.github/workflows/merge-fancode-playlist.yml
vendored
19
.github/workflows/merge-fancode-playlist.yml
vendored
|
@ -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_
|
||||
|
|
Loading…
Add table
Reference in a new issue