From 0b8981850da73a443b38d5111baf5273b7c96ae4 Mon Sep 17 00:00:00 2001
From: Toby Griffiths <toby@goodcrm.co.uk>
Date: Thu, 31 Oct 2024 02:10:56 +0000
Subject: [PATCH] Added job prefix to delete-state.needs

Sorry, I missed this one when I updated the validate-plan-destroy template.
---
 templates/full-pipeline.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/full-pipeline.yml b/templates/full-pipeline.yml
index 708f6dd..12e01c4 100644
--- a/templates/full-pipeline.yml
+++ b/templates/full-pipeline.yml
@@ -185,4 +185,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