Skip to content

Commit c122ad6

Browse files
author
azure-pipelines-bot
committed
Notifications are also enabled when a pull request is opened and the pipeline is triggered manually.
1 parent 007a907 commit c122ad6

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 "Agent"
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(succeeded(), or(and(eq(variables['SHOULDCREATEPR'], 'True'), eq(variables['build.reason'], 'Schedule')), eq(variables['build.reason'], 'Manual')))

0 commit comments

Comments
 (0)