From 0d75dfe93700207ec98cc09a71d7b2a835139d31 Mon Sep 17 00:00:00 2001
From: Toby Griffiths <toby@goodcrm.co.uk>
Date: Wed, 30 Oct 2024 14:53:17 +0000
Subject: [PATCH] Fix: Add missing prefix on `delete-state.needs`.

---
 templates/validate-plan-destroy.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/validate-plan-destroy.yml b/templates/validate-plan-destroy.yml
index 28f3044..c68b05c 100644
--- a/templates/validate-plan-destroy.yml
+++ b/templates/validate-plan-destroy.yml
@@ -154,4 +154,4 @@ include:
 
 # NOTE: we have to define this `needs` here, because inputs don't support arrays, yet.
 delete-state:
-  needs: [destroy]
+  needs: ['$[[ inputs.job_name_prefix ]]destroy']
-- 
GitLab