Skip to content

Commit b63220b

Browse files
author
Megan
committed
Added gate to prevent publish and spongy sync when not on main branch
1 parent e10d552 commit b63220b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.gitlab-ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ test-code:
5555

5656
publish:
5757
stage: publish
58+
rules:
59+
- if: $CI_COMMIT_BRANCH == "main"
5860
script:
5961
- "apply_overlay bc-java-pub ./"
6062
- "ecr_login"
@@ -63,5 +65,7 @@ publish:
6365

6466
spongycastle:
6567
stage: "sync"
68+
rules:
69+
- if: $CI_COMMIT_BRANCH == "main"
6670
script:
6771
- "syncpongy.sh"

0 commit comments

Comments
 (0)