Skip to content

Commit

Permalink
feat: support debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Jan 17, 2025
1 parent 709609e commit afc692d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions terraform-plan/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions terraform-plan/renovate_change.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit afc692d

Please sign in to comment.