Created
August 24, 2020 15:44
-
-
Save take-cheeze/d4dacf8350f167d9c4be23149cd106c1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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