File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 7
7
artifact-job :
8
8
description : " Name of the GitHub actions job where the artifact will be uploaded"
9
9
required : true
10
- github-token :
11
- description : " GitHub token available as the `secrets.GITHUB_TOKEN` variable"
12
- required : true
13
10
runs :
14
11
using : " composite"
15
12
steps :
@@ -19,12 +16,12 @@ runs:
19
16
env :
20
17
PREVIEWER_URL : " ${{ inputs.previewer-server }}/preview/${{ github.repository }}/${{ github.event.issue.number }}"
21
18
ARTIFACT_JOB : ${{ inputs.artifact-job }}
22
- run : echo "previewer-response=$(curl -X POST -f --data-urlencode \"job=${JOB }\" ${PREVIEWER_URL})" >> "$GITHUB_OUTPUT"
19
+ run : echo "previewer-response=$(curl -X POST -f --data-urlencode \"job=${ARTIFACT_JOB }\" ${PREVIEWER_URL})" >> "$GITHUB_OUTPUT"
23
20
- name : " Add GitHub Comment"
24
21
shell : bash
25
22
env :
26
23
ADD_COMMENT_URL : " https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments"
27
- GITHUB_TOKEN : ${{ inputs.github_token }}
24
+ GITHUB_TOKEN : ${{ github.token }}
28
25
PREVIEWER_RESPONSE : ${{ steps.call-previewer.outputs.previewer-response }}
29
26
run : |
30
- curl -H "Authorization: token ${GITHUB_TOKEN}" -d '{"body": "${{ env.PREVIEWER_RESPONSE }}"}' ${ADD_COMMENT_URL}
27
+ curl -H "Authorization: Bearer ${GITHUB_TOKEN}" -d '{"body": "${{ env.PREVIEWER_RESPONSE }}"}' ${ADD_COMMENT_URL}
You can’t perform that action at this time.
0 commit comments