Skip to content

Commit 7500ebd

Browse files
Making github token a parameter
1 parent aabedec commit 7500ebd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ inputs:
77
job:
88
description: "Name of the GitHub actions job where the artifact will be uploaded"
99
required: true
10+
token:
11+
description: "GitHub token available as ${{ secrets.GITHUB_TOKEN }} required to create a comment"
12+
required: true
1013
runs:
1114
using: "composite"
1215
steps:
@@ -15,7 +18,7 @@ runs:
1518
env:
1619
PREVIEWER_URL: "${{ inputs.server }}/preview/${{ github.repository }}/${{ github.event.issue.number }}?job=${{ inputs.job }}"
1720
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 }}"
1922
run: |
2023
PREVIEWER_RESPONSE=$(curl -X POST ${PREVIEWER_URL})
2124
if [[ $? ]]; then

0 commit comments

Comments
 (0)