From 6b307cb5f231d9b987e1a03426bb14c42b41ccd0 Mon Sep 17 00:00:00 2001 From: pgijsbertsen <117165507+pgijsbertsen@users.noreply.github.com> Date: Wed, 18 Feb 2026 17:16:17 +0100 Subject: [PATCH] exit early --- .forgejo/workflows/tofu-plan-k8s-wheatley.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml b/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml index f5ad167..55b8106 100644 --- a/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml +++ b/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml @@ -33,7 +33,6 @@ jobs: - name: Install deps run: | - apt update apt install -y jq - name: OpenTofu Init @@ -63,6 +62,10 @@ jobs: comment_id=$(echo "$response" | jq -r \ '.[] | select(.body | test("OpenTofu Format and Style")) | .id' | head -n 1) + if [ -z $comment_id ]; then + exit 1 + fi + echo "comment_id=$comment_id" - name: Upsert comment