Skip to content

Commit

Permalink
Feat: Make GITHUB_WORKSPACE overridable in RUN_LOCAL Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Grote committed Jun 19, 2020
1 parent 7f23223 commit 90a1f52
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/linter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -579,17 +579,21 @@ GetGitHubVars()
##########################################
echo "NOTE: ENV VAR [RUN_LOCAL] has been set to:[true]"
echo "bypassing GitHub Actions variables..."

############################
# Set the GITHUB_WORKSPACE #
############################
if [ -z "$GITHUB_WORKSPACE" ]; then
GITHUB_WORKSPACE="$DEFAULT_WORKSPACE"
fi

echo "Linting all files in mapped directory:[$DEFAULT_WORKSPACE]"

# No need to touch or set the GITHUB_SHA
# No need to touch or set the GITHUB_EVENT_PATH
# No need to touch or set the GITHUB_ORG
# No need to touch or set the GITHUB_REPO

############################
# Set the GITHUB_WORKSPACE #
############################
GITHUB_WORKSPACE="$DEFAULT_WORKSPACE"

#################################
# Set the VALIDATE_ALL_CODEBASE #
Expand Down

0 comments on commit 90a1f52

Please sign in to comment.