@@ -16,7 +16,7 @@ parameters:
1616
1717steps :
1818 - template : install-pipeline-generation.yml
19-
19+ - template : /eng/common/pipelines/templates/steps/set-default-branch.yml
2020 # This covers our public repos.
2121 - ${{ if not(endsWith(parameters.Repository, '-pr'))}} :
2222 - script : >
3030 --repository ${{parameters.Repository}}
3131 --convention ci
3232 --agentpool Hosted
33- --branch refs/heads/master
33+ --branch refs/heads/$(DefaultBranch)
3434 --patvar PATVAR
3535 --debug
3636 ${{parameters.CIConventionOptions}}
4848 --repository ${{parameters.Repository}}
4949 --convention up
5050 --agentpool Hosted
51- --branch refs/heads/master
51+ --branch refs/heads/$(DefaultBranch)
5252 --patvar PATVAR
5353 --debug
5454 ${{parameters.UPConventionOptions}}
6666 --repository ${{parameters.Repository}}
6767 --convention tests
6868 --agentpool Hosted
69- --branch refs/heads/master
69+ --branch refs/heads/$(DefaultBranch)
7070 --patvar PATVAR
7171 --debug
7272 ${{parameters.TestsConventionOptions}}
8888 --repository ${{parameters.Repository}}
8989 --convention ci
9090 --agentpool Hosted
91- --branch refs/heads/master
91+ --branch refs/heads/$(DefaultBranch)
9292 --patvar PATVAR
9393 --debug
9494 --no-schedule
@@ -107,7 +107,7 @@ steps:
107107 --repository ${{parameters.Repository}}
108108 --convention up
109109 --agentpool Hosted
110- --branch refs/heads/master
110+ --branch refs/heads/$(DefaultBranch)
111111 --patvar PATVAR
112112 --debug
113113 --no-schedule
@@ -126,7 +126,7 @@ steps:
126126 --repository ${{parameters.Repository}}
127127 --convention tests
128128 --agentpool Hosted
129- --branch refs/heads/master
129+ --branch refs/heads/$(DefaultBranch)
130130 --patvar PATVAR
131131 --debug
132132 --no-schedule
0 commit comments