From 7c5dc4c36cb4ed840e8cb1d1bbed1d32ec921f6b Mon Sep 17 00:00:00 2001 From: pgijsbertsen <117165507+pgijsbertsen@users.noreply.github.com> Date: Wed, 18 Feb 2026 16:58:51 +0100 Subject: [PATCH 1/2] set ids --- .forgejo/workflows/tofu-plan-k8s-wheatley.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml b/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml index 2f6b7d1..9a26a38 100644 --- a/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml +++ b/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml @@ -61,10 +61,12 @@ jobs: echo "::set-output name=comment_id::$comment_id" - name: Set variables + id: vars run: | echo "COMMENT_ID=${{ steps.fetch.outputs.comment_id }}" >> $FORGEJO_ENV - name: Upsert comment + id: comment env: COMMENT_BODY: | `#### OpenTofu Format and Style 🖌\`${{ steps.fmt.outcome }}\` @@ -92,12 +94,12 @@ jobs: curl -s -X PATCH \ -H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \ -H "Content-Type: application/json" \ - "$FORGEJO_URL/api/v1/repos/${{ forge.repository }}/issues/comments/$COMMENT_ID" \ + "${{ forge.server_url }}/api/v1/repos/${{ forge.repository }}/issues/comments/$COMMENT_ID" \ -d "{\"body\":\"$COMMENT_BODY\"}" else curl -s -X POST \ -H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \ -H "Content-Type: application/json" \ - "$FORGEJO_URL/api/v1/repos/${{ forge.repository }}/issues/$PR_NUMBER/comments" \ + "${{ forge.server_url }}/api/v1/repos/${{ forge.repository }}/issues/$PR_NUMBER/comments" \ -d "{\"body\":\"$COMMENT_BODY\"}" fi From 782113aa35c10ab44e6dfabe22d29e99e576ea53 Mon Sep 17 00:00:00 2001 From: pgijsbertsen <117165507+pgijsbertsen@users.noreply.github.com> Date: Wed, 18 Feb 2026 17:01:23 +0100 Subject: [PATCH 2/2] install deps --- .forgejo/workflows/tofu-plan-k8s-wheatley.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml b/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml index 9a26a38..d25c5bf 100644 --- a/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml +++ b/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml @@ -31,6 +31,11 @@ jobs: with: tofu_version: 1.11.5 + - name: Install deps + run: | + apt update + apt install -y jq + - name: OpenTofu Init id: init run: tofu init --upgrade