Skip to content

Commit b3da8c7

Browse files
committed
creating a branch for PR builds
1 parent e0b5331 commit b3da8c7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build/build_prep.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
dotnet new tool-manifest
22
dotnet tool install Cake.Tool --version 1.1.0
33
Invoke-WebRequest https://cakebuild.net/download/bootstrapper/dotnet-tool/windows -OutFile build.ps1
4-
git fetch --all
4+
if ($prNo = $env:APPVEYOR_PULL_REQUEST_NUMBER) {
5+
Write-Host "PR Build, creating an explicit branch"
6+
git fetch --all
7+
git checkout -b "pr-build-$prNo"
8+
}

0 commit comments

Comments
 (0)