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"