update-podcasts #1218
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: update-podcasts | |
on: | |
schedule: | |
- cron: "0 18 * * *" # every day at 2am Taiwan time | |
jobs: | |
update-podcasts: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Update podcasts | |
run: apod update-podcasts | |
- name: Commit changes | |
uses: EndBug/add-and-commit@v9 | |
with: | |
default_author: github_actions | |
branch: main | |
message: 'bot: update podcasts' | |
add: 'content/daily/**/*.md' |