From 1c4b18d2b45414b8712843b2f5462281bac19a37 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Thu, 1 Aug 2024 16:21:23 -0400 Subject: [PATCH] fix: adds condition to validate version step Signed-off-by: Vincent Biret --- pipelines/productionBuild.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/pipelines/productionBuild.yml b/pipelines/productionBuild.yml index 0b5bf9eb5..93697f300 100644 --- a/pipelines/productionBuild.yml +++ b/pipelines/productionBuild.yml @@ -65,6 +65,7 @@ extends: echo "##vso[task.setvariable variable=JAVA_HOME]$(JAVA_HOME_11_X64)" echo "##vso[task.setvariable variable=PATH]$(JAVA_HOME_11_X64)\bin;$(PATH)" - task: PowerShell@2 + condition: and(contains(variables['build.sourceBranch'], 'refs/heads/master'), succeeded()) displayName: 'Validate updated version' inputs: targetType: filePath