Skip to content

Commit e02d75b

Browse files
author
Gauthier Loutsch
committed
Terraform validate needs a workspace too
1 parent 97e09b0 commit e02d75b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

validate/entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
set -e
33
cd "${TF_ACTION_WORKING_DIR:-.}"
44

5+
WORKSPACE=${TF_ACTION_WORKSPACE:-default}
6+
terraform workspace select "$WORKSPACE"
7+
58
set +e
69
OUTPUT=$(sh -c "terraform validate -no-color $*" 2>&1)
710
SUCCESS=$?

0 commit comments

Comments
 (0)