Skip to content

Sync Podcast Episodes #6

Sync Podcast Episodes

Sync Podcast Episodes #6

Workflow file for this run

name: Sync Podcast Episodes
on:
schedule:
- cron: '0 12 * * 2' # Tuesdays 12:00 UTC, after the Monday release
workflow_dispatch:
# The cadence is load-bearing: it must stay well under the window in which an
# episode could roll off the feed. See docs/adr/0003-incremental-podcast-sync.md.
permissions:
contents: write
pull-requests: write
jobs:
sync-podcast:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install dependencies
run: npm install node-fetch
- name: Sync podcast feed
run: node .github/scripts/sync-podcast-feed.js
- 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