feat: allow action to use current commit instead of creating a new one

This commit is contained in:
jorenbroekema
2020-10-16 12:27:20 +02:00
parent ea3e74cc2d
commit 6ad77586cd
3 changed files with 13 additions and 1 deletions

View File

@@ -20,10 +20,13 @@ A GitHub action for styling files with [prettier](https://prettier.io).
| prettier_version | :x: | False | Specific prettier version (by default use latest) |
| prettier_options | :x: | `--write **/*.js` | Prettier options (by default it applies to the whole repository) |
| commit_options | :x: | - | Custom git commit options |
| same_commit | :x: | False | Whether to merge into the current commit instead of creating a new one |
| commit_message | :x: | Prettified Code! | Custom git commit message |
| file_pattern | :x: | * | Custom git add file pattern |
| branch (depreciated with 3.0)| :white_check_mark: | - | Always set this to `${{ github.head_ref }}` in order to work both with pull requests and push events |
> Note: using the same_commit option may lead to problems if other actions are relying on the commit being the same before and after the prettier action has ran. Keep this in mind.
### Example Config
```yaml