From a27e9e7aabb60355080e4ed4b1879576b2c0b2fb Mon Sep 17 00:00:00 2001 From: pgijsbertsen <117165507+pgijsbertsen@users.noreply.github.com> Date: Wed, 18 Feb 2026 21:19:43 +0100 Subject: [PATCH] outputs --- .forgejo/workflows/tofu-plan-k8s-wheatley.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml b/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml index afa3b7b..e6e5c90 100644 --- a/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml +++ b/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml @@ -63,7 +63,7 @@ jobs: comment_id=$(echo "$response" | jq -r \ '.[] | select(.body | test("${{ forge.workflow }}")) | .id' | head -n 1) - echo "comment_id=$comment_id" + echo "$comment_id" - name: Add comment id: comment @@ -93,7 +93,7 @@ jobs: 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 + if [ -n "${{ steps.fetch.outputs.stdout }}" ] && [ "${{ steps.fetch.outputs.stdout }}" != "null" ]; then curl -s -X PATCH \ -H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \ -H "Content-Type: application/json" \