From f34c91a24c3f41498412fe0f99829a7d69e29272 Mon Sep 17 00:00:00 2001 From: azure-pipelines-bot Date: Thu, 6 Nov 2025 13:42:44 +0530 Subject: [PATCH] Notifications are also enabled when a pull request is opened and the pipeline is triggered manually. --- Localize/localize-pipeline.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Localize/localize-pipeline.yml b/Localize/localize-pipeline.yml index 6f3517f22..53de3b360 100644 --- a/Localize/localize-pipeline.yml +++ b/Localize/localize-pipeline.yml @@ -105,10 +105,10 @@ stages: env: TEAMS_WEBHOOK: $(MSTeamsUri) displayName: 'Send MS Teams notification about PR opened' - condition: and(succeeded(), eq(variables['SHOULDCREATEPR'], 'True'), eq(variables['build.reason'], 'Schedule')) + condition: and(succeeded(), or(and(eq(variables['SHOULDCREATEPR'], 'True'), eq(variables['build.reason'], 'Schedule')), eq(variables['build.reason'], 'Manual'))) - powershell: .\send-notifications.ps1 -IsPRCreated $false -RepoName "Task-lib" env: TEAMS_WEBHOOK: $(MSTeamsUri) displayName: 'Send MS Teams notification about error' - condition: and(failed(), eq(variables['SHOULDCREATEPR'], 'True'), eq(variables['build.reason'], 'Schedule')) + condition: and(failed(), or(and(eq(variables['SHOULDCREATEPR'], 'True'), eq(variables['build.reason'], 'Schedule')), eq(variables['build.reason'], 'Manual')))