diff --git a/README.md b/README.md index cf39dc9..a0f4ccf 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ A GitHub action for styling files with [prettier](https://prettier.io). | Parameter | Required | Default | Description | | - | - | - | - | -| prettier_options | :x: | '--write "{,!(node_modules)/**/}*.js"' | Prettier options (by default it applies to the whole repository) | +| prettier_options | :x: | '--write **/*.js' | Prettier options (by default it applies to the whole repository) | | commit_options | :x: | - | Custom git commit options | | commit_message | :x: | 'Prettified Code!' | Custom git commit message | | file_pattern | :x: | '*' | Custom git add file pattern | diff --git a/action.yml b/action.yml index 1b25c56..157d036 100644 --- a/action.yml +++ b/action.yml @@ -18,7 +18,7 @@ inputs: prettier_options: description: Options for the 'prettier' command required: false - default: "--write '**/*.js'" + default: "--write **/*.js" branch: description: Branch which the changes are merged to required: true diff --git a/entrypoint.sh b/entrypoint.sh index 92d3f64..35bafca 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -21,7 +21,7 @@ EOF echo "Installing prettier..." npm install --silent --global prettier echo "Prettifing files..." -prettier $INPUT_PRETTIER_OPTIONS +prettier $INPUT_PRETTIER_OPTIONS || echo "Problem while prettifying your files!" if ! git diff --quiet then