Updates README with recently listened podcasts from Pocketcasts
-
You need to save the pocketcasts Email & Password in the repository secrets. You can find that in the Settings of your Repository. Be sure to save those as the following.
POCKETCASTS_EMAIL = <your Pocketcasts Email>
POCKETCASTS_PASSWORD = <your Pocketcasts Password>
Add a comment to your README.md like this:
<!-- PODCAST-LIST:START -->
<!-- PODCAST-LIST:END -->
Please follow the steps below:
- Go to your
<username>/<username>/actions
, hit New workflow, set up a workflow yourself, delete all the default content github made for you. - Copy the below code and paste it to your new workflow
name: Update pods
on:
workflow_dispatch:
schedule:
# Runs every 8 hours
- cron: "0 */8 * * *"
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Update README
uses: maheshrjl/pocketcasts-readme@main
with:
POCKETCASTS_EMAIL: ${{ secrets.POCKETCASTS_EMAIL }}
POCKETCASTS_PASSWORD: ${{ secrets.POCKETCASTS_PASSWORD }}
- name: Push Changes
uses: stefanzweifel/git-auto-commit-action@v4
To the extent possible under law, Mahesh Rijal has waived all copyright and related or neighboring rights to this work.
Inspired by abhisheknaiidu/todoist-readme