Update Dictionaries #168
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: Update Dictionaries | |
on: | |
schedule: | |
- cron: '0 10 * * 1' | |
workflow_dispatch: | |
jobs: | |
update-dicts: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.1.2 | |
- uses: actions/setup-node@v4.0.2 | |
with: | |
node-version: '16' | |
- name: Update dictionaries | |
run: | | |
npm ci --ignore-scripts | |
echo 'update_output<<EOF' >> $GITHUB_ENV | |
npm run update-db >> $GITHUB_ENV | |
echo 'EOF' >> $GITHUB_ENV | |
git status | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
token: ${{ secrets.RIKAIKUN_BOT_PAT }} | |
author: rikaikun[bot] <83656842+rikaikun-bot@users.noreply.github.com> | |
push-to-fork: rikaikun-bot/rikaikun | |
commit-message: | | |
fix(dict): Update dictionaries to latest versions | |
${{ env.update_output }} | |
title: 'fix(dict): Update dictionaries to latest versions' | |
body: | | |
${{ env.update_output }} | |
Auto-generated by [create-pull-request][1] | |
[1]: https://github.com/peter-evans/create-pull-request | |
branch: rikaikun-bot/update-dicts |