Fixed a bug where the prettier default option didn't work

This commit is contained in:
2020-01-24 12:29:00 +01:00
parent e1f9dea8d5
commit 7524f50124

View File

@@ -1,5 +1,5 @@
name: 'Prettier Action'
description: 'Automatically runs prettier on all your pull requests.'
name: "Prettier Action"
description: "Automatically runs prettier on all your pull requests."
author: Conrad Großer <grosserconrad@gmail.com>
@@ -7,25 +7,25 @@ inputs:
commit_message:
description: Commit message
required: false
default: 'Prettified Code!'
default: "Prettified Code!"
commit_options:
description: Commit options
required: false
file_pattern:
description: File pattern used for "git add"
required: false
default: '*'
default: "*"
prettier_options:
description: Options for the 'prettier' command
required: false
default: --write '{,!(node_modules)/**/}*.js'
default: --write "**/*.js"
branch:
description: Branch which the changes are merged to
required: true
runs:
using: 'docker'
image: 'Dockerfile'
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.commit_message }}
- ${{ inputs.commit_options }}
@@ -34,5 +34,5 @@ runs:
- ${{ inputs.branch }}
branding:
icon: 'award'
color: 'green'
icon: "award"
color: "green"