Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ inputs:
terragrunt-version:
description: Terragrunt version
required: false
default: v0.73.7
default: v0.90.0
opentofu-version:
description: OpenTofu version
required: false
Expand Down Expand Up @@ -236,11 +236,11 @@ inputs:
description: "Pre-compiled version of digger CLI to install. Must correspond to a valid release tag (vX.Y.Z). This value overrides the version derived from the github.action_ref."
required: false
default: ""
digger-os:
digger-os:
description: "OS variant of the digger CLI to install. Valid configurable values are: windows, linux, darwin, freebsd."
required: false
default: "Linux"
digger-arch:
digger-arch:
description: "Architecture of the digger CLI to install. Valid configurable values are: amd64, arm64, 386."
required: false
default: "X64"
Expand Down
4 changes: 2 additions & 2 deletions libs/execution/terragrunt.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (terragrunt Terragrunt) Init(params []string, envs map[string]string) (stri
func (terragrunt Terragrunt) Apply(params []string, plan *string, envs map[string]string) (string, string, error) {
params = append(params, []string{"-lock-timeout=3m"}...)
params = append(params, "--auto-approve")
params = append(params, "--terragrunt-non-interactive")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is duplicative with ENV var set here:

env = append(env, "TERRAGRUNT_NON_INTERACTIVE=true")
env = append(env, "TG_NO_COLOR=true")
env = append(env, "TG_NON_INTERACTIVE=true")

By removing the CLI flag but setting both TERRAGRUNT_NON_INTERACTIVE=true AND TG_NON_INTERACTIVE=true this remains compatible with versions before and after the CLI redesign https://terragrunt.gruntwork.io/docs/migrate/cli-redesign/

params = append(params, "--non-interactive")
if plan != nil {
params = append(params, *plan)
}
Expand All @@ -40,7 +40,7 @@ func (terragrunt Terragrunt) Apply(params []string, plan *string, envs map[strin

func (terragrunt Terragrunt) Destroy(params []string, envs map[string]string) (string, string, error) {
params = append(params, "--auto-approve")
params = append(params, "--terragrunt-non-interactive")
params = append(params, "--non-interactive")
stdout, stderr, exitCode, err := terragrunt.runTerragruntCommand("destroy", true, envs, nil, params...)
if exitCode != 0 {
logCommandFail(exitCode, err)
Expand Down
Loading