diff --git a/terraform-plan/main.sh b/terraform-plan/main.sh index e865e0976..35dfea28a 100644 --- a/terraform-plan/main.sh +++ b/terraform-plan/main.sh @@ -2,6 +2,10 @@ set -euo pipefail +if [ "${TFACTION_DEBUG:-}" = true]; then + set -x +fi + if [ -n "${TFACTION_DRIFT_ISSUE_NUMBER:-}" ]; then export TFCMT_CONFIG=$GITHUB_ACTION_PATH/tfcmt-drift.yaml fi diff --git a/terraform-plan/renovate_change.sh b/terraform-plan/renovate_change.sh index 52dc14f10..8f516b013 100644 --- a/terraform-plan/renovate_change.sh +++ b/terraform-plan/renovate_change.sh @@ -2,6 +2,10 @@ set -euo pipefail +if [ "${TFACTION_DEBUG:-}" = true]; then + set -x +fi + # In the pull request created by Renovate, the result of `terraform plan` must be `No change` to enable automerge safely. # If you allow changes, please set the pull request label `renovate-change`. if [ "$CI_INFO_PR_AUTHOR" = "$RENOVATE_LOGIN" ]; then