-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
43 lines (39 loc) · 1.33 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
name: "Post Comment on a Design Review"
description: >
Post a comment on a Design Review using a markdown file as the source of the
comment.
This works only when used in a workflow triggered by a Design Review, as it
will automatically pick up the associated design review. By default,
successive runs of the action will edit the same comment.
This action also reads YAML frontmatter from the markdown file to post
attachments to the posted comment.
inputs:
comment_path:
description: The path to a markdown file containing the comment body.
required: true
reuse_existing_comment:
description: Whether to reuse the existing comment made by this action in successive runs.
required: false
default: "True"
log_level:
description: The log level used by the action. Used for debugging.
required: false
default: "INFO"
runs:
using: "docker"
image: "Dockerfile"
args:
- "--allspice-hub-url"
- ${{ github.server_url }}
- "--repository"
- ${{ github.repository }}
- "--design-review-number"
- ${{ github.event.number }}
- "--comment-path"
- "${{ github.workspace}}/${{ inputs.comment_path }}"
- "--reuse-existing-comment"
- ${{ inputs.reuse_existing_comment }}
- "--log-level"
- ${{ inputs.log_level }}
env:
ALLSPICE_AUTH_TOKEN: ${{ github.token }}