Skip to content

Commit

Permalink
Trying to fix auth error
Browse files Browse the repository at this point in the history
  • Loading branch information
datapythonista committed Jan 27, 2024
1 parent 45dbef3 commit dddca20
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit dddca20

Please sign in to comment.