Skip to content

Commit

Permalink
fix(codebuild): consolidate TF_WORKSPACE guard into block scalar (col…
Browse files Browse the repository at this point in the history
…on in error message tripped YAML parser)
  • Loading branch information
Your Name committed Mar 17, 2026
1 parent b20576c commit da2eb86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codebuild/buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ phases:
- |
TF_WORKSPACE="${TF_WORKSPACE:-default}"
export TF_WORKSPACE
- echo "TF_WORKSPACE=${TF_WORKSPACE}"
- test -n "$TF_WORKSPACE" || { echo "ERROR: TF_WORKSPACE is empty"; exit 1; }
echo "TF_WORKSPACE=${TF_WORKSPACE}"
if [ -z "$TF_WORKSPACE" ]; then echo "ERROR - TF_WORKSPACE is empty"; exit 1; fi
- export TF_VAR_github_token="$GITHUB_TOKEN"
- |
BACKEND_CONFIG="backend-configs/${TF_WORKSPACE}.tf"
Expand Down

0 comments on commit da2eb86

Please sign in to comment.