Skip to content

Commit d2da1e2

Browse files
authored
ci(core,rest): trigger release builds on tags only, not release/* branches (#2622)
## Summary - Remove `release/*` from `on.push.branches` in both `ci.yaml` (Core) and `rest-ci.yml` (REST) so that pushes to release branches no longer trigger full CI runs - Release CI is now triggered exclusively by version tags (`v*`) which already exist in the `on.push.tags` globs - Add `refs/tags/` to the `notify-build-status` condition in `ci.yaml` so tag-triggered release builds still send Slack notifications Closes #2340 ## Test plan - [ ] Push a commit to a `release/*` branch — CI should **not** trigger - [ ] Push a `v*` tag on a release branch — both Core and REST CI should trigger via the existing `on.push.tags` globs - [ ] Verify `notify-build-status` fires on a tag-triggered build (check Slack notification) - [ ] Verify `main` and `pull-request/*` push triggers are unaffected
1 parent 3450739 commit d2da1e2

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ on:
2020
push:
2121
branches:
2222
- main
23-
- release/*
2423
- "pull-request/[0-9]+"
2524
tags:
2625
- "v[0-9]*.[0-9]*.[0-9]*"
@@ -1407,7 +1406,7 @@ jobs:
14071406
# ============================================================================
14081407

14091408
notify-build-status:
1410-
if: ${{ always() && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/')) && github.event_name != 'schedule' }}
1409+
if: ${{ always() && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/tags/')) && github.event_name != 'schedule' }}
14111410
needs:
14121411
- prepare
14131412
- build-container-x86_64

.github/workflows/rest-ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
push:
99
branches:
1010
- main
11-
- release/*
1211
- 'pull-request/[0-9]+'
1312
tags:
1413
- "v[0-9]*.[0-9]*.[0-9]*"

0 commit comments

Comments
 (0)