mirror of
https://github.com/creyD/prettier_action.git
synced 2026-04-12 19:30:30 +02:00
39 lines
901 B
YAML
39 lines
901 B
YAML
name: "Prettier Action"
|
|
description: "Automatically runs prettier on all your pull requests."
|
|
|
|
author: Conrad Großer <grosserconrad@gmail.com>
|
|
|
|
inputs:
|
|
commit_message:
|
|
description: Commit message
|
|
required: false
|
|
default: "Prettified Code!"
|
|
commit_options:
|
|
description: Commit options
|
|
required: false
|
|
file_pattern:
|
|
description: File pattern used for "git add"
|
|
required: false
|
|
default: "*"
|
|
prettier_options:
|
|
description: Options for the 'prettier' command
|
|
required: false
|
|
default: "--write **/*.js"
|
|
branch:
|
|
description: Branch which the changes are merged to
|
|
required: true
|
|
|
|
runs:
|
|
using: "docker"
|
|
image: "Dockerfile"
|
|
args:
|
|
- ${{ inputs.commit_message }}
|
|
- ${{ inputs.commit_options }}
|
|
- ${{ inputs.file_pattern }}
|
|
- ${{ inputs.prettier_options }}
|
|
- ${{ inputs.branch }}
|
|
|
|
branding:
|
|
icon: "award"
|
|
color: "green"
|