Skip to content

Commit 0f6fffc

Browse files
committed
support also string[] in rules.exists
1 parent c5db090 commit 0f6fffc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/lovely-showers-film.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@noxify/gitlab-ci-builder": patch
3+
---
4+
5+
support also `string[]` in `rules.exists`

src/types/rules.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type RulesDefinition<T = WhenOptions> = {
1717
/**
1818
* @see https://docs.gitlab.com/ci/yaml/#rulesexists
1919
*/
20-
exists?: string
20+
exists?: string | string[]
2121
/**
2222
* @see https://docs.gitlab.com/ci/yaml/#ruleswhen
2323
*/

0 commit comments

Comments
 (0)