We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aabedec commit 7500ebdCopy full SHA for 7500ebd
1 file changed
action.yml
@@ -7,6 +7,9 @@ inputs:
7
job:
8
description: "Name of the GitHub actions job where the artifact will be uploaded"
9
required: true
10
+ token:
11
+ description: "GitHub token available as ${{ secrets.GITHUB_TOKEN }} required to create a comment"
12
+ required: true
13
runs:
14
using: "composite"
15
steps:
@@ -15,7 +18,7 @@ runs:
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"
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21
+ GITHUB_TOKEN: "${{ inputs.token }}"
22
run: |
23
PREVIEWER_RESPONSE=$(curl -X POST ${PREVIEWER_URL})
24
if [[ $? ]]; then
0 commit comments