chore: explicitly set the GITHUB_WORKSPACE environment variable (#505)

This commit is contained in:
Tonye Jack
2022-05-29 20:32:23 -04:00
committed by GitHub
parent 1c997727c9
commit 6b8ef3323f
3 changed files with 8 additions and 6 deletions

View File

@@ -4,12 +4,12 @@ set -eu
echo "::group::changed-files-diff-sha"
echo "Resolving repository path..."
if [[ -n $INPUT_PATH ]]; then
REPO_DIR="$GITHUB_WORKSPACE/$INPUT_PATH"
echo "Resolving repository path: $REPO_DIR"
if [[ ! -d "$REPO_DIR" ]]; then
echo "::warning::Invalid repository path"
echo "::warning::Invalid repository path: $REPO_DIR"
exit 1
fi
cd "$REPO_DIR"