Skip to content

Route podcast sync updates through a PR instead of pushing to main#54

Merged
HeyItsGilbert merged 2 commits into
mainfrom
copilot/fix-sync-podcast-job
Jul 18, 2026
Merged

Route podcast sync updates through a PR instead of pushing to main#54
HeyItsGilbert merged 2 commits into
mainfrom
copilot/fix-sync-podcast-job

Conversation

Copilot AI commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

The sync-podcast Actions job was failing after generating new episode files because it still tried to push directly to main, which is now blocked by repository rules. This change updates the workflow to publish synced podcast content through an automation PR instead of a protected-branch push.

  • Workflow behavior

    • Replaced the inline git commit && git push step in podcast-sync.yml.
    • Added pull-requests: write so the workflow can open or update a PR with newly generated files under content/podcast.
  • Automation path

    • Switched the job to peter-evans/create-pull-request.
    • Uses a stable automation branch (automation/sync-podcast) and preserves the existing sync commit/title semantics.
  • Net effect

    • The sync job can continue generating new podcast episode content without violating branch protection.
    • New feed additions are surfaced for review via PR instead of being pushed straight to main.
- 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

@netlify

netlify Bot commented Jul 18, 2026

Copy link
Copy Markdown

Deploy Preview for powershellorg ready!

Name Link
🔨 Latest commit f3648fd
🔍 Latest deploy log https://app.netlify.com/projects/powershellorg/deploys/6a5bfa0e41815d00075bb45c
😎 Deploy Preview https://deploy-preview-54--powershellorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI changed the title [WIP] Fix failing GitHub Actions job sync-podcast Route podcast sync updates through a PR instead of pushing to main Jul 18, 2026
Copilot AI requested a review from HeyItsGilbert July 18, 2026 22:12
@HeyItsGilbert
HeyItsGilbert marked this pull request as ready for review July 18, 2026 22:42
Copilot AI review requested due to automatic review settings July 18, 2026 22:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the sync-podcast GitHub Actions workflow so podcast episode syncs are published via an automation pull request rather than pushing directly to the protected main branch.

Changes:

  • Grants workflow permission to write pull requests (pull-requests: write).
  • Replaces the inline git commit && git push logic with peter-evans/create-pull-request to open/update a PR for changes under content/podcast.

Comment thread .github/workflows/podcast-sync.yml
@HeyItsGilbert
HeyItsGilbert merged commit 3071e31 into main Jul 18, 2026
5 checks passed
@HeyItsGilbert
HeyItsGilbert deleted the copilot/fix-sync-podcast-job branch July 18, 2026 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants