-
Notifications
You must be signed in to change notification settings - Fork 81
39 lines (35 loc) · 1.17 KB
/
update-dicts.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Update Dictionaries
on:
schedule:
- cron: '0 10 * * 1'
workflow_dispatch:
jobs:
update-dicts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.7
- 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