Skip to content

Commit

Permalink
feat: explain passing conditional flags
Browse files Browse the repository at this point in the history
  • Loading branch information
deemp authored and pbrisbin committed Feb 2, 2024
1 parent 3de9ec1 commit 8eae253
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ various, distinct `stack-[*-]arguments[-*]` inputs that are used in more
specific ways. See the _Inputs_ section, or `action.yml` for documentation of
the new options.

The `fast` and `pedantic` inputs were removed. Use a ternary operator (see [Operators](https://docs.github.com/en/actions/learn-github-actions/expressions#operators)) to pass a flag conditionally. Example:

```yaml
stack-build-arguments: ${{ github.ref_name != 'main' && '--fast' || '' }} --pedantic
```

## Notable Changes in v4

As of version 4, this action automatically handles caching. You do not need to
Expand Down

0 comments on commit 8eae253

Please sign in to comment.