Skip to content

Commit 2d47c26

Browse files
committed
Change yamato config to only block merges to main
1 parent 8ecc45c commit 2d47c26

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.yamato/yamato-config.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ commands:
1010
triggers:
1111
cancel_old_ci: true
1212
expression: |
13-
pull_request.target in ["dev", "main"] AND
14-
NOT pull_request.push.changes.all match "**/*.md" AND
15-
NOT pull_request.source match "hotfix/.*"
13+
(pull_request.target eq "main" AND
14+
NOT pull_request.push.changes.all match "**/*.md") OR
15+
(push.branch eq "dev" AND
16+
NOT push.changes.all match "**/*.md")

0 commit comments

Comments
 (0)