Update Dictionaries #182
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/[email protected] | |
- uses: actions/[email protected] | |
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] <[email protected]> | |
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 |