File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 7
7
job :
8
8
description : " Name of the GitHub actions job where the artifact will be uploaded"
9
9
required : true
10
+ token :
11
+ description : " GitHub token available as ${{ secrets.GITHUB_TOKEN }} required to create a comment"
12
+ required : true
10
13
runs :
11
14
using : " composite"
12
15
steps :
15
18
env :
16
19
PREVIEWER_URL : " ${{ inputs.server }}/preview/${{ github.repository }}/${{ github.event.issue.number }}?job=${{ inputs.job }}"
17
20
ADD_COMMENT_URL : " https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments"
18
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
21
+ GITHUB_TOKEN : " ${{ inputs.token }}"
19
22
run : |
20
23
PREVIEWER_RESPONSE=$(curl -X POST ${PREVIEWER_URL})
21
24
if [[ $? ]]; then
You can’t perform that action at this time.
0 commit comments