Cron Jobs π #44
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: Cron Jobs π | |
on: | |
schedule: | |
- cron: '00 6 15 * *' | |
workflow_dispatch: | |
jobs: | |
update-cedict: | |
name: Update Cedict and publish new version | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
steps: | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: npm i | |
- name: Update the cedict.json file β | |
run: | | |
npm run get-cedict | |
git config --global user.name 'CI' | |
git config --global user.email 'ci.cron@github.com' | |
git add . | |
git commit -m "[CI] Update cedict.json" | |
npm version patch | |
git push |