Added default for working_directory

This commit is contained in:
2023-05-24 11:05:21 +02:00
parent d04162ee72
commit 473978add9
3 changed files with 3 additions and 11 deletions

View File

@@ -29,18 +29,10 @@ _git_changed() {
(
# PROGRAM
# Changing to the directory
cd "$GITHUB_ACTION_PATH"
cd "$INPUT_WORKING_DIRECTORY"
echo "Installing prettier..."
case $INPUT_WORKING_DIRECTORY in
false)
;;
*)
cd $INPUT_WORKING_DIRECTORY
;;
esac
npm install --silent prettier@$INPUT_PRETTIER_VERSION
# Install plugins