diff --git a/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml b/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml index d25c5bf..2f6b7d1 100644 --- a/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml +++ b/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml @@ -31,11 +31,6 @@ 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 @@ -66,12 +61,10 @@ 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 }}\` @@ -99,12 +92,12 @@ jobs: 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" \ + "$FORGEJO_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" \ - "${{ forge.server_url }}/api/v1/repos/${{ forge.repository }}/issues/$PR_NUMBER/comments" \ + "$FORGEJO_URL/api/v1/repos/${{ forge.repository }}/issues/$PR_NUMBER/comments" \ -d "{\"body\":\"$COMMENT_BODY\"}" fi