Skip to content

Commit

Permalink
Making github token a parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
datapythonista committed Jan 27, 2024
1 parent aabedec commit 7500ebd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ inputs:
job:
description: "Name of the GitHub actions job where the artifact will be uploaded"
required: true
token:
description: "GitHub token available as ${{ secrets.GITHUB_TOKEN }} required to create a comment"
required: true
runs:
using: "composite"
steps:
Expand All @@ -15,7 +18,7 @@ runs:
env:
PREVIEWER_URL: "${{ inputs.server }}/preview/${{ github.repository }}/${{ github.event.issue.number }}?job=${{ inputs.job }}"
ADD_COMMENT_URL: "https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: "${{ inputs.token }}"
run: |
PREVIEWER_RESPONSE=$(curl -X POST ${PREVIEWER_URL})
if [[ $? ]]; then
Expand Down

0 comments on commit 7500ebd

Please sign in to comment.