Skip to content

chore: log paths

chore: log paths #3

Workflow file for this run

name: Build README.md
on:
# on push to the repository
push:
# can be triggered manually
workflow_dispatch:
# on a schedule at 7pm every weekday
schedule:
- cron: '0 19 * * 1-5'
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Check out the repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Configure NPM caching
uses: actions/cache@v2
with:
path: ~/.npm
key: npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
npm-
- name: Install NPM dependencies
run: npm ci
- name: Update README.md
run: |-
npm run build
cat README.md
- name: Commit and push if changed
run: |-
git diff
git config --global user.email "[email protected]"
git config --global user.name "README-bot"
git commit -am "chore: updated README blog posts" || exit 0
git push