Skip to content

Commit 689d138

Browse files
raujaiswalazure-pipelines-bot
andauthored
Notifications are also enabled when a pull request is opened and the pipeline is triggered manually. (#1129)
Co-authored-by: azure-pipelines-bot <azure-pipelines-bot@microsoft.com>
1 parent bf1774c commit 689d138

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Localize/localize-pipeline.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ stages:
105105
env:
106106
TEAMS_WEBHOOK: $(MSTeamsUri)
107107
displayName: 'Send MS Teams notification about PR opened'
108-
condition: and(succeeded(), eq(variables['SHOULDCREATEPR'], 'True'), eq(variables['build.reason'], 'Schedule'))
108+
condition: and(succeeded(), or(and(eq(variables['SHOULDCREATEPR'], 'True'), eq(variables['build.reason'], 'Schedule')), eq(variables['build.reason'], 'Manual')))
109109

110110
- powershell: .\send-notifications.ps1 -IsPRCreated $false -RepoName "Task-lib"
111111
env:
112112
TEAMS_WEBHOOK: $(MSTeamsUri)
113113
displayName: 'Send MS Teams notification about error'
114-
condition: and(failed(), eq(variables['SHOULDCREATEPR'], 'True'), eq(variables['build.reason'], 'Schedule'))
114+
condition: and(failed(), or(and(eq(variables['SHOULDCREATEPR'], 'True'), eq(variables['build.reason'], 'Schedule')), eq(variables['build.reason'], 'Manual')))

0 commit comments

Comments
 (0)