cleaner
All checks were successful
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Successful in 22s

This commit is contained in:
Peter 2026-02-18 17:11:13 +01:00
parent 782113aa35
commit 8098efc5d4
Signed by: Peter
SSH key fingerprint: SHA256:B5tYaxBExaDm74r1px9iVeZ6F/ZDiyiy9SbBqfZYrvg

View file

@ -63,12 +63,7 @@ jobs:
comment_id=$(echo "$response" | jq -r \
'.[] | select(.body | test("OpenTofu Format and Style")) | .id' | head -n 1)
echo "::set-output name=comment_id::$comment_id"
- name: Set variables
id: vars
run: |
echo "COMMENT_ID=${{ steps.fetch.outputs.comment_id }}" >> $FORGEJO_ENV
echo "comment_id=$comment_id"
- name: Upsert comment
id: comment
@ -95,11 +90,11 @@ jobs:
</details>
run: |
if [ -n "$COMMENT_ID" ] && [ "$COMMENT_ID" != "null" ]; then
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.server_url }}/api/v1/repos/${{ forge.repository }}/issues/comments/$COMMENT_ID" \
"${{ forge.server_url }}/api/v1/repos/${{ forge.repository }}/issues/comments/${{ steps.fetch.outputs.comment_id }}" \
-d "{\"body\":\"$COMMENT_BODY\"}"
else
curl -s -X POST \