diff --git a/action.yml b/action.yml index fc6559f..f1ecc98 100644 --- a/action.yml +++ b/action.yml @@ -18,13 +18,13 @@ runs: shell: bash env: PREVIEWER_URL: "${{ inputs.previewer-server }}/preview/${{ github.repository }}/${{ github.event.issue.number }}" - ARTIFACT_JOB: "${{ inputs.artifact-job }}" + ARTIFACT_JOB: ${{ inputs.artifact-job }} run: echo "previewer-response=$(curl -X POST -f --data-urlencode \"job=${JOB}\" ${PREVIEWER_URL})" >> "$GITHUB_OUTPUT" - name: "Add GitHub Comment" shell: bash env: ADD_COMMENT_URL: "https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments" - AUTHORIZATION_HEADER: "Authorization: token ${{ inputs.github_token }}" - PREVIEWER_RESPONSE: "${{ steps.call-previewer.outputs.previewer-response }}" + GITHUB_TOKEN: ${{ inputs.github_token }} + PREVIEWER_RESPONSE: ${{ steps.call-previewer.outputs.previewer-response }} run: | - curl -H "${AUTHORIZATION_HEADER}" -d '{"body": "${{ env.PREVIEWER_RESPONSE }}"}' ${ADD_COMMENT_URL} + curl -H "Authorization: token ${GITHUB_TOKEN}" -d '{"body": "${{ env.PREVIEWER_RESPONSE }}"}' ${ADD_COMMENT_URL}