@@ -20,7 +20,6 @@ parameters:
2020- name : ForkAutomationBranches
2121 type : object
2222 default :
23- - azure-sdk/azure-powershell
2423 - azure-sdk/azure-sdk-for-go
2524 - azure-sdk/azure-sdk-for-java
2625 - azure-sdk/azure-sdk-for-js
@@ -35,7 +34,6 @@ parameters:
3534 - Azure/azure-sdk-for-js-pr
3635 - Azure/azure-sdk-for-net-pr
3736 - Azure/azure-sdk-for-python-pr
38- - azure-sdk/azure-powershell-pr
3937 - azure-sdk/azure-sdk-for-go-pr
4038 - azure-sdk/azure-sdk-for-java-pr
4139 - azure-sdk/azure-sdk-for-js-pr
@@ -129,8 +127,8 @@ jobs:
129127 filePath : $(System.DefaultWorkingDirectory)/eng/common/scripts/Delete-RemoteBranches.ps1
130128 arguments : >
131129 -RepoId "${{ repo }}"
132- -CentralRepoId "Azure/azure-rest-api-specs "
133- -BranchRegex "^sdkAuto/(?<PrNumber>\d{5,})/.*$"
130+ -BranchRegex "^sdkauto/.*$ "
131+ -LastCommitOlderThan ((Get-Date).AddDays(-30))
134132 -AuthToken $(azuresdk-github-pat)
135133 -WhatIf:$${{parameters.WhatIfPreference}}
136134
@@ -145,8 +143,8 @@ jobs:
145143 filePath : $(System.DefaultWorkingDirectory)/eng/common/scripts/Delete-RemoteBranches.ps1
146144 arguments : >
147145 -RepoId "${{ repo }}"
148- -CentralRepoId "Azure/azure-rest-api-specs-pr "
149- -BranchRegex "^sdkAuto/(?<PrNumber>\d{5,})/.*$"
146+ -BranchRegex "^sdkauto/.*$ "
147+ -LastCommitOlderThan ((Get-Date).AddDays(-30))
150148 -AuthToken $(azuresdk-github-pat)
151149 -WhatIf:$${{parameters.WhatIfPreference}}
152150
0 commit comments