generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
59 lines (58 loc) · 1.95 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: 'Slack Approvals name here'
description: 'Approve GitHub Action Workflows via Slack'
author: 'Dominic Dambrogia'
inputs:
approvalPrefix:
required: false
description: 'The prefix for the message to match for approving a workflow'
default: 'approve-'
errorAction:
required: false
description: What action to take when an error occurs (approve | reject)
default: reject
rejectionPrefix:
required: false
description: 'The prefix for the message to match for rejecting a workflow'
default: 'reject-'
repository:
required: true
description: |
Should be in the format of: <org|user>/<repo>
Used with runId to create link to review the action/workflow
runId:
required: true
description: 'The github run id (github.context.runId)'
slackAppId:
required: true
description: App ID for bot profile to ignore messages for approval/rejection consideration
slackChannel:
required: true
description: Which slack channel to write to, should be prefixed with a "#" character
slackHistoryLimit:
required: true
description: How many messages to look back through in the history when looking for approval/rejection messages
slackPollPause:
required: false
description: When polling slack for messages, how long to wait (in ms) between requests
default: '10000'
slackPollTimeout:
required: false
description: How long to poll slack for before timing out
default: '10000'
slackToken:
required: true
description: Token to authenticate with slack
timeoutAction:
required: false
description: What action to take if no approval or rejection message is found (approve | reject)
default: reject
outputs:
approved:
description: Assert if workflow is approved
rejected:
description: Assert if workflow is rejected
error:
description: Assert if workflow ran into an error, error will reject workflow.
runs:
using: 'node16'
main: 'dist/index.js'