Skip to content

Cron Jobs πŸ”ƒ

Cron Jobs πŸ”ƒ #44

Workflow file for this run

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