Skip to content

Commit 1aea656

Browse files
committed
Work CD-CI
- Update conditions to check for PR. ***NO_CI***
1 parent 1e34ed9 commit 1aea656

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

azure-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
# push NuGet packages to Azure Artifacts feed (always happens except on PR builds)
113113
- task: NuGetCommand@2
114114
displayName: Push NuGet packages to Azure Artifacts
115-
condition: and( succeeded(), ne(variables['Build.Reason'], 'PullRequest') )
115+
condition: and( succeeded(), eq(variables['System.PullRequest.PullRequestId'], '') )
116116
continueOnError: true
117117
inputs:
118118
command: push
@@ -138,7 +138,7 @@ jobs:
138138
githubReuseRelease: true
139139
githubEditRelease: true
140140
githubReleaseAsset: '$(Build.ArtifactStagingDirectory)/*.exe'
141-
condition: and( succeeded(), ne(variables['Build.Reason'], 'PullRequest'), not( startsWith(variables['Build.SourceBranch'], 'refs/tags/v') ) )
141+
condition: and( succeeded(), eq(variables['System.PullRequest.PullRequestId'], ''), not( startsWith(variables['Build.SourceBranch'], 'refs/tags/v') ) )
142142
displayName: Create/Update GitHub release
143143

144144
##############################

0 commit comments

Comments
 (0)