Skip to content

Commit 3919ccc

Browse files
raujaiswalazure-pipelines-bot
andauthored
Notifications are also enabled when a pull request is opened and the pipeline is triggered manually. (#5386)
* disabling source branch deletion * Notifications are also enabled when a pull request is opened and the pipeline is triggered manually. --------- Co-authored-by: azure-pipelines-bot <[email protected]>
1 parent babb1a6 commit 3919ccc

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)