Skip to content

Commit 52a17ee

Browse files
committed
fix
1 parent 58de436 commit 52a17ee

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

Build.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,15 @@ function CreateNuGetPackage {
9393
CheckLastExitCode
9494
}
9595

96+
97+
function LoadBaseBranchIfNotMaster(){
98+
if ($env:APPVEYOR_REPO_BRANCH -ne "master") {
99+
git fetch origin $env:APPVEYOR_REPO_BRANCH:$env:APPVEYOR_REPO_BRANCH
100+
}
101+
}
102+
103+
LoadBaseBranchIfNotMaster
104+
96105
dotnet tool restore
97106
CheckLastExitCode
98107

appveyor.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,6 @@ for:
4545
}
4646
choco install docfx -y
4747
48-
Write-Output $env:APPVEYOR_REPO_BRANCH
49-
if ($env:APPVEYOR_REPO_BRANCH -Eq 'openapi'){
50-
git fetch origin openapi:openapi
51-
Write-Output "YAY"
52-
} else {
53-
Write-Output "NAY"
54-
}
55-
5648
after_build:
5749
- pwsh: |
5850
CD ./docs

0 commit comments

Comments
 (0)