Skip to content

Commit 3d8287d

Browse files
bschnurrCopilot
andauthored
Switch stable pipeline trigger to release branch only (#1003)
Trigger on pushes to release/* branches instead of tag pushes. This prevents the pipeline from firing on tags pushed to main. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 80a27f6 commit 3d8287d

2 files changed

Lines changed: 12 additions & 9 deletions

File tree

.github/agents/release.agent.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Start by reading `package.json` to determine the current version. Then confirm w
1818
1919
- **Even minor** = stable release (e.g. `2026.4.0` — *example*)
2020
- **Odd minor** = pre-release / dev (e.g. `2026.3.0-dev`, `2026.5.0-dev` — *examples*)
21-
- The stable release pipeline (`build/azure-devdiv-pipeline.stable.yml`) triggers on git tags matching `v*`
21+
- The stable release pipeline (`build/azure-devdiv-pipeline.stable.yml`) triggers on pushes to `release/*` branches
2222
- Tag format: `v<version>` (e.g. `v2026.4.0` — *example*)
2323
- Release branch format: `release/<YYYY>.<EVEN_MINOR>` (e.g. `release/2026.4` — *example*)
2424
@@ -66,7 +66,9 @@ git checkout main
6666
git pull
6767
git checkout -b release/2026.4
6868
git push upstream release/2026.4
69-
```
69+
```
70+
71+
The stable release pipeline triggers automatically when the release branch is pushed to upstream.
7072
7173
> ✋ **Confirm**: Is the release branch pushed to upstream?
7274
@@ -98,9 +100,9 @@ Goal: Keep `main` moving forward on an odd minor with `-dev` suffix.
98100
99101
---
100102
101-
### Phase 4 — Tag and trigger the pipeline
103+
### Phase 4 — Tag the release
102104
103-
Goal: Push a tag from the release branch to trigger the stable pipeline.
105+
Goal: Tag the release commit for GitHub release tracking.
104106
105107
Replace `release/2026.4` and `v2026.4.0` with the actual branch and version:
106108
```
@@ -111,11 +113,11 @@ git tag v2026.4.0
111113
git push upstream v2026.4.0
112114
```
113115
114-
The pipeline triggers automatically on the new tag. Navigate to the stable pipeline in Azure DevOps to monitor the run.
116+
The tag marks the release for GitHub. The pipeline was already triggered by the release branch push in Phase 2. Navigate to the stable pipeline in Azure DevOps to monitor progress.
115117
116118
When the pipeline completes signing, it will pause for manual validation before publishing. Approve to publish to the VS Code Marketplace.
117119
118-
> ✋ **Confirm**: Has the tag been pushed and the pipeline started?
120+
> ✋ **Confirm**: Has the tag been pushed and is the pipeline running?
119121
120122
---
121123

build/azure-devdiv-pipeline.stable.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: Publish Release
2-
trigger:
3-
tags:
4-
include: ['v*']
2+
trigger:
3+
branches:
4+
include:
5+
- 'release/*'
56
pr: none
67

78
resources:

0 commit comments

Comments
 (0)