Skip to content

Commit b389f6c

Browse files
committed
Allow release stage only on manual build
So pushes can trigger the pipeline automatically.
1 parent 4002b3c commit b389f6c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.pipelines/PSScriptAnalyzer-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: '20 16 * * 4'
@@ -116,7 +117,7 @@ extends:
116117
*.nupkg
117118
- stage: release
118119
dependsOn: build
119-
condition: ne(variables['Build.Reason'], 'Schedule')
120+
condition: eq(variables['Build.Reason'], 'Manual')
120121
variables:
121122
version: $[ stageDependencies.build.main.outputs['package.version'] ]
122123
drop: $(Pipeline.Workspace)/drop_build_main

0 commit comments

Comments
 (0)