Skip to content

Commit af98da6

Browse files
author
Bart Koelman
committed
Trying to get ci-build to validate this PR
1 parent 2621afd commit af98da6

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Build.ps1

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

97+
# In a PR the base branch needs to be fetched in order for regitlint to work.
98+
function FetchBaseBranchIfNotMaster() {
99+
if ($env:APPVEYOR_PULL_REQUEST_NUMBER -And $env:APPVEYOR_REPO_BRANCH -ne "master") {
100+
git fetch -q origin ${env:APPVEYOR_REPO_BRANCH}:${env:APPVEYOR_REPO_BRANCH}
101+
}
102+
}
103+
104+
FetchBaseBranchIfNotMaster
105+
97106
dotnet tool restore
98107
CheckLastExitCode
99108

appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ environment:
1515
branches:
1616
only:
1717
- master
18+
- resource-inheritance
1819
- develop
1920
- unstable
2021
- /release\/.+/

0 commit comments

Comments
 (0)