From 295ca7ccb4f237b9f4b91688ba45d965cf39d045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Wei=C3=9Fe?= Date: Tue, 7 May 2024 08:29:56 +0200 Subject: [PATCH] Fix state exists check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Weiße --- .github/actions/update_tfstate/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/update_tfstate/action.yml b/.github/actions/update_tfstate/action.yml index 276748546..d0176ba52 100644 --- a/.github/actions/update_tfstate/action.yml +++ b/.github/actions/update_tfstate/action.yml @@ -23,7 +23,7 @@ runs: if: always() && inputs.skipDeletion == 'false' shell: bash run: | - if [[ ! -d constellation-terraform ]] && [[ ! -d constellation-iam-terraform ]]; then + if [[ -d constellation-terraform ]] || [[ -d constellation-iam-terraform ]]; then echo "DELETE_TF_STATE=true" >> "$GITHUB_ENV" else echo "DELETE_TF_STATE=false" >> "$GITHUB_ENV"