Skip to content

Commit 3b7702b

Browse files
committed
Add CHANGELOG for release v11
Also add a little more documentation for #29
1 parent 37dd913 commit 3b7702b

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## run-fourmolu v11
2+
3+
* Add a new `working-directory` argument that allows you to change the
4+
working directory that `fourmolu` is run from.
5+
[#29](https://github.com/haskell-actions/run-fourmolu/pull/29)
6+
17
## run-fourmolu v10
28

39
* Upgrade `run-formolu` to work with Node 20 instead of Node 16.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ Here's a more complicated example that shows more options being used:
8686
8787
# Extra args to pass to fourmolu on the command line.
8888
extra-args: "--indent-wheres true"
89+
90+
# Change to the ./my-haskell-code/ directory before running this action.
91+
working-directory: "./my-haskell-code"
8992
```
9093

9194
See [docs](https://github.com/actions/toolkit/tree/main/packages/glob#patterns) on pattern syntax.

action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ inputs:
4040
default: latest
4141
working-directory:
4242
description: >
43-
Directory to run Fourmolu.
43+
Directory in which to run Fourmolu. This also affects how the `pattern`
44+
argument is interpretted, with Glob patterns being relative to this
45+
`working-directory` argument.
46+
47+
Defaults to the repository root if not set.
4448
required: false
4549
runs:
4650
using: 'node20'

0 commit comments

Comments
 (0)