Skip to content

Commit

Permalink
Allow release stage only on manual build
Browse files Browse the repository at this point in the history
So pushes can trigger the pipeline automatically.
  • Loading branch information
andyleejordan committed Sep 23, 2024
1 parent 4002b3c commit b389f6c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .pipelines/PSScriptAnalyzer-Official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
# Support: https://aka.ms/onebranchsup #
#################################################################################

trigger: none
trigger:
- main

schedules:
- cron: '20 16 * * 4'
Expand Down Expand Up @@ -116,7 +117,7 @@ extends:
*.nupkg
- stage: release
dependsOn: build
condition: ne(variables['Build.Reason'], 'Schedule')
condition: eq(variables['Build.Reason'], 'Manual')
variables:
version: $[ stageDependencies.build.main.outputs['package.version'] ]
drop: $(Pipeline.Workspace)/drop_build_main
Expand Down

0 comments on commit b389f6c

Please sign in to comment.