From 183a8f0ea3d4aa418df81cbd27edcdd3fb81f8e6 Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Wed, 22 Jul 2020 11:59:46 -0500 Subject: [PATCH] fixed bug --- .../reports/{expected-JSON.tap => expected-JSON.tap.ignored} | 0 lib/linter.sh | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename .automation/test/json/reports/{expected-JSON.tap => expected-JSON.tap.ignored} (100%) diff --git a/.automation/test/json/reports/expected-JSON.tap b/.automation/test/json/reports/expected-JSON.tap.ignored similarity index 100% rename from .automation/test/json/reports/expected-JSON.tap rename to .automation/test/json/reports/expected-JSON.tap.ignored diff --git a/lib/linter.sh b/lib/linter.sh index 41e35bd4..14ca1b0e 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -755,7 +755,7 @@ GetGitHubVars() { ############################ # Validate we have a value # ############################ - if [ -z "${GITHUB_TOKEN}" ]; then + if [ -z "${GITHUB_TOKEN}" ] && [[ ${RUN_LOCAL} == "false" ]]; then echo -e "${NC}${B[R]}${F[W]}ERROR!${NC} Failed to get [GITHUB_TOKEN]!${NC}" echo -e "${NC}${B[R]}${F[W]}ERROR:${NC}[${GITHUB_TOKEN}]${NC}" echo -e "${NC}${B[R]}${F[W]}ERROR!${NC} Please set a [GITHUB_TOKEN] from the main workflow environment to take advantage of multiple status reports!${NC}"