Skip to content

Commit bc00e0d

Browse files
committed
Allow release stage only on manual build
1 parent 26e21e0 commit bc00e0d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.pipelines/SecretManagement-Official.yml

Lines changed: 3 additions & 2 deletions
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: '40 18 * * 2'
@@ -122,7 +123,7 @@ extends:
122123
*.nupkg
123124
- stage: release
124125
dependsOn: build
125-
condition: ne(variables['Build.Reason'], 'Schedule')
126+
condition: eq(variables['Build.Reason'], 'Manual')
126127
variables:
127128
version: $[ stageDependencies.build.main.outputs['package.version'] ]
128129
drop: $(Pipeline.Workspace)/drop_build_main

0 commit comments

Comments
 (0)