Skip to content

Add build.proj to sync list when main branch is changed. #15607

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .azure-pipelines/util/sync-tools-folder-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ steps:
cp src/lib src/lib-tmp -r

cp tools tools-tmp -r

cp build.proj build-tmp.proj
pwsh: true
- task: PowerShell@2
displayName: Config git
Expand All @@ -25,6 +27,17 @@ steps:

git checkout -b syncToolsFolder-${{ parameters.BranchName }} origin/${{ parameters.BranchName }}
pwsh: true
- task: PowerShell@2
displayName: Sync build.proj folder from main to ${{ parameters.BranchName }}
inputs:
targetType: inline
script: >-
rm build.proj

mv build-tmp.proj build.proj

git add build.proj
pwsh: true
- task: PowerShell@2
displayName: Sync .azure-pipelines folder from main to ${{ parameters.BranchName }}
inputs:
Expand Down