-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.4 KB
/
add_word.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
45
name: Add word
on:
workflow_dispatch:
inputs:
word:
description: 'A word to add.'
required: true
default: ''
description:
description: 'Description of the word.'
required: true
default: ''
author:
description: 'Your name.'
required: true
default: ''
jobs:
add:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install
run: |
npm ci
- name: Add word
run: |
npm run file-from-word "${{ github.event.inputs.word }}" "${{ github.event.inputs.description }}" "${{ github.event.inputs.author }}"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
title: 'New word: ${{ github.event.inputs.word }}'
branch: 'new_word'
branch-suffix: 'random'
commit-message: 'New word: ${{ github.event.inputs.word }}'
add-paths: words/*.mdx
assignees: |
maksugr
ivan-orekhov
reviewers: |
maksugr
ivan-orekhov