Skip to content

Commit

Permalink
Make the destination directory if it doesn't exist (#9767)
Browse files Browse the repository at this point in the history
  • Loading branch information
hallipr authored Feb 3, 2025
1 parent eaded4a commit fb3b70e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions eng/pipelines/eng-workflows-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ parameters:
- azure-sdk-for-js
- azure-sdk-for-net
- azure-sdk-for-python
# Add this back when Rust enables Check Enforcer and Actions and has .github/workflows directory
# - azure-sdk-for-rust
- azure-sdk-for-rust

trigger: none

Expand Down
1 change: 1 addition & 0 deletions eng/pipelines/templates/steps/sync-directory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ steps:
- pwsh: |
Set-PsDebug -Trace 1
$repoPath = "${{ repo }}/${{ parameters.DirectoryToSync }}"
New-Item -ItemType Directory -Force -ErrorAction Ignore -Path $repoPath
Remove-Item -v -r -ErrorAction Ignore "$repoPath${{ parameters.FilePattern }}"
Copy-Item -v -r `
"$(System.DefaultWorkingDirectory)/$(Build.Repository.Name)/${{ parameters.DirectoryToSync }}${{ parameters.FilePattern }}" `
Expand Down

0 comments on commit fb3b70e

Please sign in to comment.