-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathaction.yml
51 lines (46 loc) · 1.55 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: 'Run Fourmolu'
description: 'Check formatting of Haskell code with Fourmolu'
inputs:
pattern:
required: false
description: |
Glob pattern that is used to find source files to format.
See [docs](https://github.com/actions/toolkit/tree/main/packages/glob#patterns) on pattern syntax.
It is possible to specify several patterns by putting each one on a new line.
```yaml
src/**/*.hs
!src/Main.hs
```
`src/Main.hs` will be skipped.
default: |
**/*.hs
**/*.hs-boot
follow-symbolic-links:
required: false
description: >
Whether to follow symbolic links.
default: true
extra-args:
required: false
description: >
Extra arguments to pass to Fourmolu.
version:
required: false
description: >
The version number of Fourmolu to use. Defaults to "latest". Example
version numbers -- `0.13.0.0`, `0.10.1.0`, etc. See
https://github.com/fourmolu/fourmolu/releases for a list of all releases.
Note that formatting changes in later versions of Fourmolu are not
necessarily backwards-compatible. You are recommended to specify the
version of fourmolu you wish to use.
default: latest
working-directory:
description: >
Directory in which to run Fourmolu. This also affects how the `pattern`
argument is interpretted, with Glob patterns being relative to this
`working-directory` argument.
Defaults to the repository root if not set.
required: false
runs:
using: 'node20'
main: 'dist/index.js'