fix
All checks were successful
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Successful in 22s
All checks were successful
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Successful in 22s
This commit is contained in:
parent
71be11b561
commit
0c559c6a21
1 changed files with 4 additions and 2 deletions
|
|
@ -90,16 +90,18 @@ jobs:
|
|||
|
||||
</details>
|
||||
run: |
|
||||
payload=$(jq -Rs --arg body "$COMMENT_BODY" '{body: $body}' <<< "$COMMENT_BODY")
|
||||
|
||||
if [ -n "${{ steps.fetch.outputs.comment_id }}" ] && [ "${{ steps.fetch.outputs.comment_id }}" != "null" ]; then
|
||||
curl -s -X PATCH \
|
||||
-H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
"${{ forge.api_url }}/repos/${{ forge.repository }}/issues/comments/${{ steps.fetch.outputs.comment_id }}" \
|
||||
-d "{\"body\":\"$COMMENT_BODY\"}"
|
||||
-d "$payload"
|
||||
else
|
||||
curl -s -X POST \
|
||||
-H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
"${{ forge.api_url }}/repos/${{ forge.repository }}/issues/$PR_NUMBER/comments" \
|
||||
-d "{\"body\":\"$COMMENT_BODY\"}"
|
||||
-d "$payload"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue