-
Notifications
You must be signed in to change notification settings - Fork 89
/
Copy pathaction.yml
37 lines (33 loc) · 939 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Prettier Action
description: Automatically runs prettier on all your changes.
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'
dry:
description: Running the script in dry mode just shows whether there are files that should be prettified or not
required: false
default: false
prettier_version:
description: Specific version of prettier (by default just use the latest version)
required: false
default: false
runs:
using: 'docker'
image: 'Dockerfile'
branding:
icon: 'award'
color: 'green'