Skip to content

Commit 1ee8847

Browse files
committed
ci: add condition for CI to run on PRs or main
1 parent c352b12 commit 1ee8847

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.cirrus.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
registry_config: ENCRYPTED[!88cf0d757d2f8b93dca9e57dc166b65ddedef6378e7ac12a91a022ab3fb28dd47b10d452dc5c53a68e144e6bdbae999b!]
22
jammy_task:
3+
only_if: "$CIRRUS_PR != '' || $CIRRUS_BRANCH == 'main'" # This condition ensures the task runs only for PRs or on the main branch.
34
timeout_in: 120m
45
container:
56
image: ghcr.io/dairlab/docker-dair/jammy-dair-base:v1.42
@@ -29,6 +30,7 @@ jammy_task:
2930
format: junit
3031

3132
noble_task:
33+
only_if: "$CIRRUS_PR != '' || $CIRRUS_BRANCH == 'main'" # This condition ensures the task runs only for PRs or on the main branch.
3234
timeout_in: 120m
3335
container:
3436
image: ghcr.io/dairlab/docker-dair/noble-dair-base:v1.42

0 commit comments

Comments
 (0)