Skip to content

Commit 5135a90

Browse files
authored
Use the latest dependency config file on main when building for generation branch(Azure#16419)
* Use the latest build config for accounts * Use the latest build config for accounts * Use the latest build config for accounts Co-authored-by: wyunchi-ms <[email protected]>
1 parent da34713 commit 5135a90

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/PrepareAutorestModule.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,13 @@ git init
6565
git remote add -f origin https://github.com/Azure/azure-powershell.git
6666
git config core.sparseCheckout true
6767
Add-Content -Path .git/info/sparse-checkout -Value "src/Accounts/"
68+
Add-Content -Path .git/info/sparse-checkout -Value "tools/"
6869
git pull origin main
6970
Move-Item -Path "$TmpFolder\src\Accounts" -Destination "$TmpFolder\Accounts"
7071
Copy-Item "$TmpFolder\Accounts" "$PSScriptRoot\..\src" -Recurse -Force
7172
Remove-Item -Path "$TmpFolder\src" -Recurse -Force
73+
Move-Item -Path "$TmpFolder\tools\Common*.targets" -Destination "$PSScriptRoot\..\tools"
74+
Remove-Item -Path "$TmpFolder\tools" -Recurse -Force
7275
Install-Module Az.Accounts -Repository PSGallery -Force
7376
Import-Module Az.Accounts
7477
Copy-Item "$PSScriptRoot\..\src\*.props" $TmpFolder

0 commit comments

Comments
 (0)