Skip to content

Commit 308449f

Browse files
committed
move ci fix to clone_script
1 parent 7be2088 commit 308449f

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

Build.ps1

-8
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,6 @@ function CreateNuGetPackage {
9393
CheckLastExitCode
9494
}
9595

96-
function LoadOpenApiBranchIfRequired {
97-
if ($env:APPVEYOR_REPO_BRANCH -eq "openapi") {
98-
git fetch origin openapi:openapi
99-
}
100-
}
101-
102-
LoadOpenApiBranchIfRequired
103-
10496
dotnet tool restore
10597
CheckLastExitCode
10698

appveyor.yml

+6
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ branches:
2020
- unstable
2121
- /release\/.+/
2222

23+
clone_script:
24+
- ps: |
25+
git clone --branch=$env:appveyor_repo_branch git@github.com:$env:appveyor_repo_name.git $env:appveyor_build_folder
26+
git fetch -q origin +refs/pull/$env:appveyor_pull_request_number/merge:
27+
git checkout -qf FETCH_HEAD
28+
2329
pull_requests:
2430
do_not_increment_build_number: true
2531

0 commit comments

Comments
 (0)