-
-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (44 loc) · 1.31 KB
/
cron-update-dictionary.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
40
41
42
43
44
name: Update Dictionary
on:
schedule:
# per a week
- cron: '0 0 * * 0'
permissions:
contents: write
pull-requests: write
jobs:
createPullRequest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- run: yarn install
- name: Try to update dictionary
run: npm run update
- name: Tests
run: npm test
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "feat(deps): Update dictionary"
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: update-dictionary
branch-suffix: timestamp
delete-branch: true
title: '[Update] Sudashi synonyms dictionary'
body: |
New dictionary
- [SudachiDict](https://github.com/WorksApplications/SudachiDict)
labels: "Type: dictionary"
assignees: azu
reviewers: azu
draft: false
- name: Check outputs
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"