From 96674b41c0db372843d61ed2d4708f0882753cac Mon Sep 17 00:00:00 2001 From: Raul Rivera Date: Tue, 21 Apr 2020 11:42:04 -0500 Subject: [PATCH] Minor fixes --- src/terragrunt_apply.sh | 2 +- src/terragrunt_destroy.sh | 2 +- src/terragrunt_fmt.sh | 2 +- src/terragrunt_import.sh | 2 +- src/terragrunt_init.sh | 2 +- src/terragrunt_plan.sh | 2 +- src/terragrunt_taint.sh | 2 +- src/terragrunt_validate.sh | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/terragrunt_apply.sh b/src/terragrunt_apply.sh index bd000607..20cb5662 100755 --- a/src/terragrunt_apply.sh +++ b/src/terragrunt_apply.sh @@ -24,7 +24,7 @@ function terragruntApply { # Comment on the pull request if necessary. if [ "$GITHUB_EVENT_NAME" == "pull_request" ] && [ "${tfComment}" == "1" ]; then - applyCommentWrapper="#### \`terragrunt apply\` ${applyCommentStatus} + applyCommentWrapper="#### \`${tfBinary} apply\` ${applyCommentStatus}
Show Output \`\`\` diff --git a/src/terragrunt_destroy.sh b/src/terragrunt_destroy.sh index 77995132..5f01e59e 100755 --- a/src/terragrunt_destroy.sh +++ b/src/terragrunt_destroy.sh @@ -24,7 +24,7 @@ function terragruntDestroy { # Comment on the pull request if necessary. if [ "$GITHUB_EVENT_NAME" == "pull_request" ] && [ "${tfComment}" == "1" ]; then - destroyCommentWrapper="#### \`terragrunt destroy\` ${destroyCommentStatus} + destroyCommentWrapper="#### \`${tfBinary} destroy\` ${destroyCommentStatus}
Show Output \`\`\` diff --git a/src/terragrunt_fmt.sh b/src/terragrunt_fmt.sh index bfa1527a..fa1805bf 100755 --- a/src/terragrunt_fmt.sh +++ b/src/terragrunt_fmt.sh @@ -53,7 +53,7 @@ ${fmtFileDiff} done - fmtCommentWrapper="#### \`terraform fmt\` Failed + fmtCommentWrapper="#### \`${tfBinary} fmt\` Failed ${fmtComment} *Workflow: \`${GITHUB_WORKFLOW}\`, Action: \`${GITHUB_ACTION}\`, Working Directory: \`${tfWorkingDir}\`, Workspace: \`${tfWorkspace}\`*" diff --git a/src/terragrunt_import.sh b/src/terragrunt_import.sh index ef7f848a..fdbea8b2 100755 --- a/src/terragrunt_import.sh +++ b/src/terragrunt_import.sh @@ -24,7 +24,7 @@ function terragruntImport { # Comment on the pull request if necessary. if [ "$GITHUB_EVENT_NAME" == "pull_request" ] && [ "${tfComment}" == "1" ] && [ "${importCommentStatus}" == "Failed" ]; then - importCommentWrapper="#### \`terragrunt import\` ${importCommentStatus} + importCommentWrapper="#### \`${tfBinary} import\` ${importCommentStatus}
Show Output \`\`\` diff --git a/src/terragrunt_init.sh b/src/terragrunt_init.sh index 0c84d7eb..a88bf22d 100755 --- a/src/terragrunt_init.sh +++ b/src/terragrunt_init.sh @@ -21,7 +21,7 @@ function terragruntInit { # Comment on the pull request if necessary. if [ "$GITHUB_EVENT_NAME" == "pull_request" ] && [ "${tfComment}" == "1" ]; then - initCommentWrapper="#### \`terragrunt init\` Failed + initCommentWrapper="#### \`${tfBinary} init\` Failed \`\`\` ${initOutput} diff --git a/src/terragrunt_plan.sh b/src/terragrunt_plan.sh index 8431f99a..a6f99c41 100755 --- a/src/terragrunt_plan.sh +++ b/src/terragrunt_plan.sh @@ -44,7 +44,7 @@ function terragruntPlan { # Comment on the pull request if necessary. if [ "$GITHUB_EVENT_NAME" == "pull_request" ] && [ "${tfComment}" == "1" ] && ([ "${planHasChanges}" == "true" ] || [ "${planCommentStatus}" == "Failed" ]); then - planCommentWrapper="#### \`terragrunt plan\` ${planCommentStatus} + planCommentWrapper="#### \`${tfBinary} plan\` ${planCommentStatus}
Show Output \`\`\` diff --git a/src/terragrunt_taint.sh b/src/terragrunt_taint.sh index 522f4353..34dd9254 100644 --- a/src/terragrunt_taint.sh +++ b/src/terragrunt_taint.sh @@ -26,7 +26,7 @@ function terragruntTaint { # Comment on the pull request if necessary. if [ "$GITHUB_EVENT_NAME" == "pull_request" ] && [ "${tfComment}" == "1" ]; then - taintCommentWrapper="#### \`terraform taint\` ${taintCommentStatus} + taintCommentWrapper="#### \`${tfBinary} taint\` ${taintCommentStatus}
Show Output \`\`\` diff --git a/src/terragrunt_validate.sh b/src/terragrunt_validate.sh index 6586bccd..cc72a01a 100755 --- a/src/terragrunt_validate.sh +++ b/src/terragrunt_validate.sh @@ -21,7 +21,7 @@ function terragruntValidate { # Comment on the pull request if necessary. if [ "$GITHUB_EVENT_NAME" == "pull_request" ] && [ "${tfComment}" == "1" ]; then - validateCommentWrapper="#### \`terragrunt validate\` Failed + validateCommentWrapper="#### \`${tfBinary} validate\` Failed \`\`\` ${validateOutput}