Skip to content

Commit

Permalink
fixup! feat (wip): Update github token
Browse files Browse the repository at this point in the history
  • Loading branch information
kgilpin committed Aug 8, 2024
1 parent 00f8bfc commit 5878dee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plan/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ runs:
# If the comment is found, edit the comment using cURL
# If the comment is not found, add a new comment using cURL
if [ -z "$comment_id" ]; then
curl -X POST -H "Authorization: token ${{ inputs.github_token }}" -H "Content-Type: application/json" \
curl -X POST -H "Authorization: Bearer ${{ inputs.github_token }}" -H "Content-Type: application/json" \
-d "{\"body\": $encoded_body}" \
"https://api.github.com/repos/${{ github.repository }}/issues/${{ inputs.issue_id }}/comments"
else
curl -X PATCH -H "Authorization: token ${{ inputs.github_token }}" -H "Content-Type: application/json" \
curl -X PATCH -H "Authorization: Bearer ${{ inputs.github_token }}" -H "Content-Type: application/json" \
-d "{\"body\": $encoded_body}" \
"https://api.github.com/repos/${{ github.repository }}/issues/comments/$comment_id"
fi

0 comments on commit 5878dee

Please sign in to comment.