Skip to content

Instantly share code, notes, and snippets.

@take-cheeze
Created August 24, 2020 15:44
Show Gist options
  • Save take-cheeze/d4dacf8350f167d9c4be23149cd106c1 to your computer and use it in GitHub Desktop.
Save take-cheeze/d4dacf8350f167d9c4be23149cd106c1 to your computer and use it in GitHub Desktop.
name: Update book list
on:
push:
branches: [ master ]
schedule:
- cron: "0 * * * *"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run main
- run: npm run render
- run: |
git diff --exit-code || \
git commit -a -m "Update book list" && \
git push https://take-cheeze:{{secrets.GITHUB_TOKEN}}@${GITHUB_REPOSITORY}.git master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment