Skip to content

Commit fb3b70e

Browse files
authored
Make the destination directory if it doesn't exist (#9767)
1 parent eaded4a commit fb3b70e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

eng/pipelines/eng-workflows-sync.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ parameters:
2222
- azure-sdk-for-js
2323
- azure-sdk-for-net
2424
- azure-sdk-for-python
25-
# Add this back when Rust enables Check Enforcer and Actions and has .github/workflows directory
26-
# - azure-sdk-for-rust
25+
- azure-sdk-for-rust
2726

2827
trigger: none
2928

eng/pipelines/templates/steps/sync-directory.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ steps:
152152
- pwsh: |
153153
Set-PsDebug -Trace 1
154154
$repoPath = "${{ repo }}/${{ parameters.DirectoryToSync }}"
155+
New-Item -ItemType Directory -Force -ErrorAction Ignore -Path $repoPath
155156
Remove-Item -v -r -ErrorAction Ignore "$repoPath${{ parameters.FilePattern }}"
156157
Copy-Item -v -r `
157158
"$(System.DefaultWorkingDirectory)/$(Build.Repository.Name)/${{ parameters.DirectoryToSync }}${{ parameters.FilePattern }}" `

0 commit comments

Comments
 (0)