From 27dd6e71a03e7c717027936677bdcea4bff25df5 Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Mon, 27 Apr 2020 12:27:41 -0500 Subject: [PATCH] Cleanup git pull data --- lib/linter.sh | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/lib/linter.sh b/lib/linter.sh index 635938c9..c3a371ab 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -982,14 +982,16 @@ BuildFileList() ################ # print header # ################ - echo "" - echo "----------------------------------------------" - echo "Pulling in code history and branches..." + if [[ "$ACTIONS_RUNNER_DEBUG" != "false" ]]; then + echo "" + echo "----------------------------------------------" + echo "Pulling in code history and branches..." + fi ##################################################################### # Switch codebase back to master to get a list of all files changed # ##################################################################### - SWITCH_CMD=$(cd "$GITHUB_WORKSPACE" || exit; git pull; git checkout master 2>&1) + SWITCH_CMD=$(cd "$GITHUB_WORKSPACE" || exit; git pull --quiet; git checkout master 2>&1) ####################### # Load the error code # @@ -1009,9 +1011,11 @@ BuildFileList() ################ # print header # ################ - echo "" - echo "----------------------------------------------" - echo "Generating Diff with:[git diff --name-only 'master..$GITHUB_SHA' --diff-filter=d]" + if [[ "$ACTIONS_RUNNER_DEBUG" != "false" ]]; then + echo "" + echo "----------------------------------------------" + echo "Generating Diff with:[git diff --name-only 'master..$GITHUB_SHA' --diff-filter=d]" + fi ################################################ # Get the Array of files changed in the comits #