From a3561a8976a4de11499fad13861d424a0604ebfc Mon Sep 17 00:00:00 2001 From: John Jetmore Date: Sat, 27 Jan 2024 09:52:56 -0500 Subject: [PATCH] set INPUT_WORKING_DIRECTORY if not already set --- entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 572de87..b59ef7b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -38,6 +38,9 @@ _git_changed() { ( # PROGRAM # Changing to the directory +if [ -z "$INPUT_WORKING_DIRECTORY" ] ; then + INPUT_WORKING_DIRECTORY=$GITHUB_ACTION_PATH +fi cd "$INPUT_WORKING_DIRECTORY" echo "Installing prettier..."