scrape #714
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: Build README | |
on: | |
# manual trigger | |
workflow_dispatch: | |
# trigger from | |
# https://github.com/deeheber/danielle-heberling-dot-xyz/blob/main/.github/workflows/dispatch.yml | |
repository_dispatch: | |
types: [scrape] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
- name: Use Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Install node dependencies | |
run: npm ci | |
- name: Check for RSS feed updates | |
run: npm run scrape | |
- name: Commit and push | |
run: |- | |
git diff | |
git config --global user.email "[email protected]" | |
git config --global user.name "README-bot" | |
git add -A | |
git commit -m "Update content" || git commit --allow-empty -m "Empty commit" | |
git push |