commit 342e15b8bfe8e41d31c9eb88705aa1b6fa2d2677
parent 2aae0c5a5543a61f780e79577ef46f0268e328cc
Author: JohnMcPMS <johnmcp@microsoft.com>
Date: Mon, 23 Mar 2020 11:27:32 -0700
Disable binary version update for PR builds (#64)
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
@@ -17,8 +17,11 @@ variables:
buildConfiguration: 'Release'
appxPackageDir: '$(build.artifactStagingDirectory)\AppxPackages\\'
+# Do not set the build version for a PR build.
+
jobs:
- job: 'GetReleaseTag'
+ condition: not(eq(variables['Build.Reason'], 'PullRequest'))
variables:
runCodesignValidationInjection: ${{ false }}
steps:
@@ -32,6 +35,7 @@ jobs:
- job: 'Build'
dependsOn: 'GetReleaseTag'
+ condition: always()
variables:
BuildVer: $[counter(dependencies.GetReleaseTag.outputs['GetTag.tag'], 1)]
steps:
@@ -45,6 +49,7 @@ jobs:
- task: PowerShell@2
displayName: Update Binary Version
+ condition: not(eq(variables['Build.Reason'], 'PullRequest'))
inputs:
filePath: 'src\binver\Update-BinVer.ps1'
arguments: '-TargetFile binver\binver\version.h -BuildVersion $(BuildVer)'