File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,15 @@ jobs:
27
27
displayName: Git commit and push
28
28
29
29
- pwsh : |
30
- $Title = "Sync fabricbot.json According To ADO Wiki Page"
31
- $HeadBranch = "internal/sync-fabricbot-json"
32
- $BaseBranch = "main"
33
- $Description = "This PR sync taskType: scheduledAndTrigger part of fabricbot.json from table of Service-Team-Label-and-Contact-List in ADO wiki page"
34
- ./tools/Github/CreatePR.ps1 -Title $Title -HeadBranch $HeadBranch -BaseBranch $BaseBranch -BotAccessToken $(BotAccessToken) -Description $Description
30
+ $diff = git diff main..internal/sync-fabricbot-json
31
+ if ($diff.Length -eq 0) {
32
+ Write-Host "No differences between main and internal/sync-fabricbot-json. Skipping PR creation."
33
+ } else {
34
+ $Title = "Sync fabricbot.json According To ADO Wiki Page"
35
+ $HeadBranch = "internal/sync-fabricbot-json"
36
+ $BaseBranch = "main"
37
+ $Description = "This PR sync taskType: scheduledAndTrigger part of fabricbot.json from table of Service-Team-Label-and-Contact-List in ADO wiki page"
38
+ ./tools/Github/CreatePR.ps1 -Title $Title -HeadBranch $HeadBranch -BaseBranch $BaseBranch -BotAccessToken $(BotAccessToken) -Description $Description
39
+ }
35
40
displayName: Create PR to main branch
36
-
41
+
You can’t perform that action at this time.
0 commit comments