From 8eae253ce0edc5f60c83ef2d61fb6562ddc76e66 Mon Sep 17 00:00:00 2001 From: Danila Danko Date: Fri, 2 Feb 2024 12:28:20 +0300 Subject: [PATCH] feat: explain passing conditional flags --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index d7cc00a..dcededc 100644 --- a/README.md +++ b/README.md @@ -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