File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff 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
9194See [docs](https://github.com/actions/toolkit/tree/main/packages/glob#patterns) on pattern syntax.
Original file line number Diff line number Diff 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
4549runs :
4650 using : ' node20'
You can’t perform that action at this time.
0 commit comments