diff --git a/src/action.js b/src/action.js index 0d72c9e..98fa49f 100644 --- a/src/action.js +++ b/src/action.js @@ -43,9 +43,8 @@ const action = async () => { const commands = [ { key: "init", - exec: `${binary}${isTerragrunt && initRunAll ? " run-all" : ""} init -no-color ${ - terraformInit ? terraformInit.join(" ") : "" - }`.trim(), + exec: `${binary}${isTerragrunt && initRunAll ? " run-all" : ""} init -no-color ${terraformInit ? terraformInit.join(" ") : "" + }`.trim(), }, { key: "validate", @@ -88,7 +87,7 @@ const action = async () => { // if not terragrunt and init-run-all is true, then notify the user that this command is only valid for terragrunt if (!isTerragrunt && initRunAll) { - core.warning( + core.error( "init-run-all is only valid when using terragrunt, skipping this option", ); } diff --git a/test/run-all/run-all.tf b/test/init-run-all/init-run-all.tf similarity index 100% rename from test/run-all/run-all.tf rename to test/init-run-all/init-run-all.tf