From 1f55b422daa852a633de9524e6b1e0f99244ff4f Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Tue, 18 Aug 2020 09:51:38 -0500 Subject: [PATCH 1/2] fix folder for persistance --- lib/linter.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/linter.sh b/lib/linter.sh index ba7a0c4a..075df623 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -260,7 +260,7 @@ export WARNING_ARRAY_TEST # Workaround SC2034 OUTPUT_FORMAT="${OUTPUT_FORMAT}" # Output format to be generated. Default none OUTPUT_FOLDER="${OUTPUT_FOLDER:-super-linter.report}" # Folder where the reports are generated. Default super-linter.report OUTPUT_DETAILS="${OUTPUT_DETAILS:-simpler}" # What level of details. (simpler or detailed). Default simpler -REPORT_OUTPUT_FOLDER="${DEFAULT_WORKSPACE}/${OUTPUT_FOLDER}" # Location for the report folder +REPORT_OUTPUT_FOLDER="${GITHUB_WORKSPACE}/${OUTPUT_FOLDER}" # Location for the report folder ########################## # Array of changed files # @@ -795,6 +795,11 @@ GetGitHubVars() { fatal "Provided volume is not a directory!" fi + ################################ + # Set the report output folder # + ################################ + REPORT_OUTPUT_FOLDER="${DEFAULT_WORKSPACE}/${OUTPUT_FOLDER}" + info "Linting all files in mapped directory:[${DEFAULT_WORKSPACE}]" # No need to touch or set the GITHUB_SHA @@ -1024,6 +1029,12 @@ Reports() { ################################### if [ -z "${FORMAT_REPORT}" ]; then info "Reports generated in folder ${REPORT_OUTPUT_FOLDER}" + ############################################# + # Print info on reports that were generated # + ############################################# + info "Contents of report folder:" + OUTPUT_CONTENTS_CMD=$(ls "${REPORT_OUTPUT_FOLDER}") + info "$REPORT_OUTPUT_FOLDER" fi ################################ From f5752cfd452938932ae445c664284d17e981b1df Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Tue, 18 Aug 2020 10:09:18 -0500 Subject: [PATCH 2/2] adding the right var --- lib/linter.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linter.sh b/lib/linter.sh index 075df623..09ae346c 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -1034,7 +1034,7 @@ Reports() { ############################################# info "Contents of report folder:" OUTPUT_CONTENTS_CMD=$(ls "${REPORT_OUTPUT_FOLDER}") - info "$REPORT_OUTPUT_FOLDER" + info "$OUTPUT_CONTENTS_CMD" fi ################################