Merge pull request #53 from stevelacy/master

Add input git push options
This commit is contained in:
2021-05-21 09:46:51 +02:00
committed by GitHub
3 changed files with 7 additions and 3 deletions

View File

@@ -20,6 +20,7 @@ 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 |
| push_options | :x: | - | Custom git push options |
| same_commit | :x: | `false` | Update the current commit instead of creating a new one, created by [Joren Broekema](https://github.com/jorenbroekema), this command works only with the checkout action set to fetch depth '0' (see example 2) |
| commit_message | :x: | `"Prettified Code!"` | Custom git commit message, will be ignored if used with `same_commit` |
| file_pattern | :x: | `*` | Custom git add file pattern, can't be used with only_changed! |
@@ -53,7 +54,7 @@ jobs:
ref: ${{ github.head_ref }}
- name: Prettify code
uses: creyD/prettier_action@v3.1
uses: creyD/prettier_action@v3.3
with:
# This part is also where you can pass other options, for example:
prettier_options: --write **/*.{js,md}
@@ -83,7 +84,7 @@ jobs:
fetch-depth: 0
- name: Prettify code
uses: creyD/prettier_action@v3.1
uses: creyD/prettier_action@v3.3
with:
# This part is also where you can pass other options, for example:
prettier_options: --write **/*.{js,md}