Skip to content

Commit

Permalink
Add CHANGELOG for release v11
Browse files Browse the repository at this point in the history
Also add a little more documentation for
#29
  • Loading branch information
cdepillabout committed Oct 25, 2024
1 parent 37dd913 commit 3b7702b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## run-fourmolu v11

* Add a new `working-directory` argument that allows you to change the
working directory that `fourmolu` is run from.
[#29](https://github.com/haskell-actions/run-fourmolu/pull/29)

## run-fourmolu v10

* Upgrade `run-formolu` to work with Node 20 instead of Node 16.
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ Here's a more complicated example that shows more options being used:
# Extra args to pass to fourmolu on the command line.
extra-args: "--indent-wheres true"
# Change to the ./my-haskell-code/ directory before running this action.
working-directory: "./my-haskell-code"
```

See [docs](https://github.com/actions/toolkit/tree/main/packages/glob#patterns) on pattern syntax.
Expand Down
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ inputs:
default: latest
working-directory:
description: >
Directory to run Fourmolu.
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'
Expand Down

0 comments on commit 3b7702b

Please sign in to comment.