diff --git a/README.md b/README.md index 99fd861..d2414ca 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ A GitHub action for styling files with [prettier](prettier.io). | Parameter | Required | Default | Description | | - | - | - | - | -| prettier_options | :white_check_mark: | - | Prettier options | +| prettier_options | :x: | '--write "{,!(node_modules)/**/}*.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 11bfb1a..784ac4a 100644 --- a/action.yml +++ b/action.yml @@ -17,7 +17,8 @@ inputs: default: '*' prettier_options: description: Options for the 'prettier' command - required: true + required: false + default: '--write "{,!(node_modules)/**/}*.js"' branch: description: Branch which the changes are merged to required: true