From eb033c3e9e9a7dc308a998fb036dface0c051963 Mon Sep 17 00:00:00 2001 From: Jeremy Rimpo Date: Fri, 25 Sep 2020 00:34:18 -0500 Subject: [PATCH] [skip ci] Use PR branch for umbrella repo (if it exists) --- appveyor.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index b347312..e10a64f 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -15,8 +15,10 @@ build_script: New-Item -ItemType Directory -Path c:\projects\modorganizer-build cd c:\projects\modorganizer-umbrella + + ($env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH -eq $null) ? ($branch = $env:APPVEYOR_REPO_BRANCH) : ($branch = $env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH) - git checkout $(git show-ref --verify --quiet refs/remotes/origin/${env:APPVEYOR_REPO_BRANCH} || echo '-b') ${env:APPVEYOR_REPO_BRANCH} + git checkout $(git show-ref --verify --quiet refs/remotes/origin/${branch} || echo '-b') ${branch} C:\Python37-x64\python.exe unimake.py -d c:\projects\modorganizer-build -s Appveyor_Build=True ${env:APPVEYOR_PROJECT_NAME}