Skip to content

Commit b1153ff

Browse files
committed
move CI fix to appveyor clone_script
1 parent 7be2088 commit b1153ff

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-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

+5
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ for:
3737
services:
3838
- postgresql101
3939
# REF: https://github.com/docascode/docfx-seed/blob/master/appveyor.yml
40+
clone_script:
41+
- ps: |
42+
git clone --branch=$env:APPEVEYOR_REPO_BRANCH git@github.com:$env:APPEVEYOR_REPO_NAME.git $env:APPEVEYOR_BUILD_FOLDER
43+
git fetch -q origin +refs/pull/$env:APPEVEYOR_PULL_REQUEST_NUMBER/merge:
44+
git checkout -qf FETCH_HEAD
4045
before_build:
4146
- pwsh: |
4247
if (-Not $env:APPVEYOR_PULL_REQUEST_TITLE) {

0 commit comments

Comments
 (0)