Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions .github/workflows/podcast-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

permissions:
contents: write
pull-requests: write

jobs:
sync-podcast:
Expand All @@ -29,10 +30,14 @@ jobs:
- name: Sync podcast feed
run: node .github/scripts/sync-podcast-feed.js

- name: Commit new episodes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add content/podcast
git diff --staged --quiet || git commit -m "Sync new podcast episodes from feed"
git push
- name: Create pull request for new episodes
uses: peter-evans/create-pull-request@v8.1.1
with:
add-paths: |
content/podcast
branch: automation/sync-podcast
commit-message: Sync new podcast episodes from feed
title: Sync new podcast episodes from feed
body: |
Automated podcast sync from the Podbean feed.
delete-branch: true
Comment thread
HeyItsGilbert marked this conversation as resolved.