Skip to content

Commit 7de8d99

Browse files
committed
fix: use regex match for CIRRUS_TAG to prevent L3 on branch pushes
$CIRRUS_TAG != '' evaluates true even when undefined. Switch to =~ 'v.*' so L3 tasks only trigger on version tags.
1 parent d1404e3 commit 7de8d99

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.cirrus.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ env:
1515
# =============================================================================
1616
release_validation_task:
1717
name: "E2E Release Validation"
18-
only_if: $CIRRUS_TAG != '' || $CIRRUS_BRANCH == 'main'
18+
only_if: $CIRRUS_TAG =~ 'v.*' || $CIRRUS_BRANCH == 'main'
1919
macos_instance:
2020
image: ghcr.io/cirruslabs/macos-sequoia-base:latest
2121
install_deps_script:
@@ -37,7 +37,7 @@ release_validation_task:
3737

3838
full_journey_task:
3939
name: "E2E Journey Tests"
40-
only_if: $CIRRUS_TAG != ''
40+
only_if: $CIRRUS_TAG =~ 'v.*'
4141
macos_instance:
4242
image: ghcr.io/cirruslabs/macos-sequoia-base:latest
4343
install_deps_script:
@@ -53,7 +53,7 @@ full_journey_task:
5353

5454
full_edge_cases_task:
5555
name: "E2E Edge Case Tests"
56-
only_if: $CIRRUS_TAG != ''
56+
only_if: $CIRRUS_TAG =~ 'v.*'
5757
macos_instance:
5858
image: ghcr.io/cirruslabs/macos-sequoia-base:latest
5959
install_deps_script:
@@ -69,7 +69,7 @@ full_edge_cases_task:
6969

7070
full_commands_task:
7171
name: "E2E Command + Interactive Tests"
72-
only_if: $CIRRUS_TAG != ''
72+
only_if: $CIRRUS_TAG =~ 'v.*'
7373
macos_instance:
7474
image: ghcr.io/cirruslabs/macos-sequoia-base:latest
7575
install_deps_script:

0 commit comments

Comments
 (0)