From 8098efc5d44a8c2325e1552a408bf594a49a7b3a Mon Sep 17 00:00:00 2001 From: pgijsbertsen <117165507+pgijsbertsen@users.noreply.github.com> Date: Wed, 18 Feb 2026 17:11:13 +0100 Subject: [PATCH] cleaner --- .forgejo/workflows/tofu-plan-k8s-wheatley.yaml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml b/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml index d25c5bf..f5ad167 100644 --- a/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml +++ b/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml @@ -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: 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 \