Fetch recent blog posts from DHARMA Hypotheses #3197
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: Fetch recent blog posts from DHARMA Hypotheses | |
on: | |
schedule: | |
- cron: "* */12 */1 * *" | |
jobs: | |
fetch-recent-blog-posts: | |
name: Fetch recent blog posts | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install node dependencies | |
run: yarn | |
- name: Run node script | |
run: yarn build | |
- name: Git setup | |
run: git config --global user.email readme-bot@example.com && git config --global user.name readme-bot | |
- name: Git commit | |
run: git diff --quiet && git diff --staged --quiet || git commit -am '[BOT] Update content' && git push |