forked from unsplash/comment-on-pr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
30 lines (30 loc) · 867 Bytes
/
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
name: Comment on PR
author: Aaron Klaassen <aaron@unsplash.com>
description: Leaves a comment on an open PR matching a push event.
branding:
icon: 'message-square'
color: 'blue'
inputs:
msg:
description: Comment's message
required: true
check_for_duplicate_msg:
description: If false, action doesn't check for duplicate msg.
required: false
default: true
delete_prev_regex_msg:
description: If not empty, all messages matching the given regex will be deleted.
required: false
default: nil
pr_number:
description: If not empty, action will this input instead of parsing it from event data
required: false
default: nil
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.msg }}
- ${{ inputs.check_for_duplicate_msg }}
- ${{ inputs.delete_prev_regex_msg }}
- ${{ inputs.pr_number }}