Skip to content

Commit 8bc7151

Browse files
azure-sdkscbedd
andauthored
Sync eng/common directory with azure-sdk-tools for PR 8650 (Azure#23204)
* missed a condition passthrough --------- Co-authored-by: Scott Beddall <[email protected]> Co-authored-by: Scott Beddall <[email protected]>
1 parent 2cc25cb commit 8bc7151

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

eng/common/pipelines/templates/steps/set-default-branch.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ parameters:
22
WorkingDirectory: '$(System.DefaultWorkingDirectory)'
33
RemoteRepo: 'origin'
44
DefaultBranchVariableName: DefaultBranch
5+
Condition: 'succeeded()'
56
steps:
67
- pwsh: |
78
$setDefaultBranch = (git remote show ${{ parameters.RemoteRepo }} | Out-String) -replace "(?ms).*HEAD branch: (\w+).*", '$1'
@@ -13,4 +14,5 @@ steps:
1314
Write-Host "##vso[task.setvariable variable=${{ parameters.DefaultBranchVariableName }}]$setDefaultBranch"
1415
displayName: "Setup Default Branch"
1516
workingDirectory: ${{ parameters.workingDirectory }}
17+
condition: ${{ parameters.Condition }}
1618
ignoreLASTEXITCODE: true

eng/common/pipelines/templates/steps/verify-links.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ parameters:
1212

1313
steps:
1414
- template: /eng/common/pipelines/templates/steps/set-default-branch.yml
15+
parameters:
16+
Condition: ${{ parameters.Condition }}
1517
- task: PowerShell@2
1618
displayName: Link verification check
1719
condition: ${{ parameters.Condition }}

0 commit comments

Comments
 (0)