-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
48 lines (46 loc) · 1.32 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
name: PR Comment Action
branding:
icon: arrow-right-circle
color: gray-dark
description: |
This action comments on PR
inputs:
debug-mode:
description: Set to true for verbose execution when debugging
required: false
default: 'false'
log-level:
description: The log level to use for the execution
required: false
default: 'info'
log-timestamped:
description: Set to true in order to enable timestamps on log messages
required: false
default: 'true'
pr-number:
description: The current pull request number
required: true
comment-message:
description: The comment to post on the PR
required: true
unique-comment-id:
description: The unique id to use for the comment
required: true
runs:
using: 'composite'
steps:
- name: setup
shell: bash
id: setup
run: |
echo "scripts-path=${GITHUB_ACTION_PATH}" >>"${GITHUB_OUTPUT}"
- name: PR Comment
run: '${{ steps.setup.outputs.scripts-path }}/scripts/script.sh'
shell: bash
env:
DEBUG_MODE: ${{ inputs.debug-mode }}
LOG_LEVEL: ${{ inputs.log-level }}
LOG_TIMESTAMPED: ${{ inputs.log-timestamped }}
PR_NUMBER: ${{ inputs.pr-number }}
COMMENT_MESSAGE: ${{ inputs.comment-message }}
UNIQUE_COMMENT_ID: ${{ inputs.unique-comment-id }}