mirror of
https://github.com/creyD/prettier_action.git
synced 2026-04-15 04:40:33 +02:00
Added dry mode
This commit is contained in:
@@ -40,10 +40,11 @@ echo "Installing prettier..."
|
||||
npm install --silent --global prettier
|
||||
|
||||
echo "Prettifing files..."
|
||||
prettier $INPUT_PRETTIER_OPTIONS || echo "Problem while prettifying your files with options $INPUT_PRETTIER_OPTIONS"
|
||||
echo "Files:"
|
||||
prettier $INPUT_PRETTIER_OPTIONS || echo "Problem while prettifying your files with options $INPUT_PRETTIER_OPTIONS."
|
||||
|
||||
# To keep runtime good, just continue if something was changed
|
||||
if _git_changed;
|
||||
if [! $INPUT_DRY] && [_git_changed];
|
||||
then
|
||||
# Calling method to configure the git environemnt
|
||||
_git_setup
|
||||
|
||||
Reference in New Issue
Block a user