mirror of
https://github.com/creyD/prettier_action.git
synced 2026-04-14 20:30:30 +02:00
Added default for working_directory
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user