Skip to content

Commit 56809a1

Browse files
committed
Allow release stage only on manual build
So pushes can trigger the pipeline automatically.
1 parent 63d19ed commit 56809a1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.pipelines/vscode-powershell-Official.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
# Support: https://aka.ms/onebranchsup #
99
#################################################################################
1010

11-
trigger: none
11+
trigger:
12+
- main
1213

1314
schedules:
1415
- cron: '25 9 * * 3'
@@ -145,7 +146,7 @@ extends:
145146
displayName: Run tests
146147
- stage: release
147148
dependsOn: build
148-
condition: ne(variables['Build.Reason'], 'Schedule')
149+
condition: eq(variables['Build.Reason'], 'Manual')
149150
variables:
150151
version: $[ stageDependencies.build.main.outputs['package.version'] ]
151152
vsixVersion: $[ stageDependencies.build.main.outputs['package.vsixVersion'] ]

0 commit comments

Comments
 (0)