From 4f4c1fc499761357e69b9f4ae939627eb487594c Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Tue, 30 Jun 2020 22:23:17 +0200 Subject: [PATCH] Use expressions --- .azure-pipelines/advanced-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines/advanced-test.yml b/.azure-pipelines/advanced-test.yml index 34668f5ce..9fc1ec64c 100644 --- a/.azure-pipelines/advanced-test.yml +++ b/.azure-pipelines/advanced-test.yml @@ -9,5 +9,5 @@ pr: none stages: - template: templates/stages/test-and-package-stage.yml # Notify failures only for release branches. - - template: templates/stages/notify-failure-stage.yml - condition: and(failed(), endsWith(variables['Build.SourceBranchName', '.x']) + - ${{ if endsWith(variables['Build.SourceBranchName'], '.x') }}: + - template: templates/stages/notify-failure-stage.yml