eof fmt
This commit is contained in:
parent
a566d0663b
commit
ad94bf30e4
1 changed files with 20 additions and 20 deletions
|
|
@ -63,7 +63,7 @@ jobs:
|
||||||
comment_id=$(echo "$response" | jq -r \
|
comment_id=$(echo "$response" | jq -r \
|
||||||
'.[] | select(.body | test("${{ forge.workflow }}")) | .id' | head -n 1)
|
'.[] | select(.body | test("${{ forge.workflow }}")) | .id' | head -n 1)
|
||||||
|
|
||||||
echo "comment_id=$comment_id"
|
echo "$comment_id"
|
||||||
|
|
||||||
- name: Add comment
|
- name: Add comment
|
||||||
id: comment
|
id: comment
|
||||||
|
|
@ -108,11 +108,11 @@ jobs:
|
||||||
|
|
||||||
payload=$(jq -Rs --arg body "$COMMENT_BODY" '{body: $body}' <<< "$COMMENT_BODY")
|
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
|
if [ -n "${{ steps.fetch.outputs }}" ] && [ "${{ steps.fetch.outputs }}" != "null" ]; then
|
||||||
curl -s -X PATCH \
|
curl -s -X PATCH \
|
||||||
-H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \
|
-H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
"${{ forge.api_url }}/repos/${{ forge.repository }}/issues/comments/${{ steps.fetch.outputs.comment_id }}" \
|
"${{ forge.api_url }}/repos/${{ forge.repository }}/issues/comments/${{ steps.fetch.outputs }}" \
|
||||||
-d "$payload"
|
-d "$payload"
|
||||||
else
|
else
|
||||||
curl -s -X POST \
|
curl -s -X POST \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue