fix: enhance release approval condition to include main and release branches (#302057)

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
João Moreno
2026-03-16 12:50:35 +01:00
committed by GitHub
parent 4bf76cd10b
commit 95e71c6873

View File

@@ -710,7 +710,7 @@ extends:
baseImage: ubuntu:24.04
arch: arm64
- ${{ if and(parameters.VSCODE_RELEASE, eq(variables['VSCODE_PRIVATE_BUILD'], false)) }}:
- ${{ if and(parameters.VSCODE_RELEASE, eq(variables['VSCODE_PRIVATE_BUILD'], false), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'))) }}:
- stage: ApproveRelease
dependsOn: [] # run in parallel to compile stage
pool: