Skip to content

Commit

Permalink
Merge pull request #2998 from microsoftgraph/fix/pipelinestage
Browse files Browse the repository at this point in the history
Adds condition to deploy to ps gallery on main branch triggers only.
  • Loading branch information
timayabi2020 authored Oct 17, 2024
2 parents 3e6dacf + c8fc6cf commit 0060e60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .azure-pipelines/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ extends:
allowPackageConflicts: true
- stage: 'Deploy_to_PsGallery'
dependsOn: stage
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main')) # Only deploy to PSGallery on main branch
jobs:
- deployment: 'DeployToPowerShellGallery'
displayName: 'Deploy to PowerShell Gallery'
Expand Down

0 comments on commit 0060e60

Please sign in to comment.