Fix state exists check

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2024-05-07 08:29:56 +02:00
parent 012937740f
commit 295ca7ccb4
No known key found for this signature in database
GPG Key ID: 7DD3015F3DDE4B9C

View File

@ -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"