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