Skip to content

Commit eaf4716

Browse files
committed
feat: add exclude-commands input to action
1 parent 42c8faf commit eaf4716

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

action.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,26 @@ inputs:
1414
description: Additional TOML keys to export as part of the projects object. Specify them as json path strings, separated by commas. For example, "tool.upside.foo,bar.baz".
1515
required: false
1616
default: ""
17+
exclude-commands:
18+
description: |
19+
Commands to exclude from being exported as part of the projects.
20+
21+
These excludes can be specified either as a string that will apply the exclude globally, or as multiple key-value pairs for certain projects.
22+
23+
For example, passing the string "test" will not export a detected test command from ANY project in the repo.
24+
25+
To exclude a command only from a certain project in the repo, use "project=" and "command=". For example, specifying the following:
26+
27+
exclude-commands: |
28+
project=my-package-1,command=test
29+
project=my-package-2,command=lint
30+
project=my-package-1,command=install
31+
32+
would not export the "test" and "install" commands for "my-package-1" and the "lint" command for "my-package-2".
33+
34+
Mixing global and project-level excludes is valid.
35+
required: false
36+
default: ""
1737

1838
outputs:
1939
paths:

0 commit comments

Comments
 (0)