generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
41 lines (39 loc) · 1.35 KB
/
action.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
name: 'Checkbox Action'
description: 'Checks or unchecks a checkbox in the body of the pull request, or returns the list confirming the change in the checkbox.'
author: 'marocchino'
github-token:
action-input:
input: GITHUB_TOKEN
is-default: true
permissions:
pull-requests: write
pull-requests-reason: to update PR body
inputs:
action:
required: false
description: 'check, uncheck or detect. This default to check'
default: 'check'
list:
required: false
description: 'Line separated List of checkboxes to modify. ex) list 1\nlist 2'
default: ''
matches:
required: false
description: 'Regular expression for the checkbox to modify.'
default: ''
error:
required: false
description: 'error, warn or ignore. Specifies whether to skip or raise an error when error occurred. This defaults to error'
default: 'error'
GITHUB_TOKEN:
description: "The GitHub access token (e.g. secrets.GITHUB_TOKEN) used to update the body. This defaults to {{ github.token }}."
default: "${{ github.token }}"
required: false
outputs:
checked:
description: 'Returns a list of checked items from the previous modification as json in []string.'
unchecked:
description: 'Returns a list of unchecked items from the previous modification as json in []string.'
runs:
using: 'node16'
main: 'dist/index.js'