forked from boostorg/assert
Use GITHUB_BASE_REF on Windows as well
This commit is contained in:
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -84,8 +84,9 @@ jobs:
|
|||||||
if: "startsWith( matrix.os, 'windows-' )"
|
if: "startsWith( matrix.os, 'windows-' )"
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
|
if "%GITHUB_BASE_REF%" == "" set GITHUB_BASE_REF=%GITHUB_REF%
|
||||||
set BOOST_BRANCH=develop
|
set BOOST_BRANCH=develop
|
||||||
if "%GITHUB_REF%" == "master" set BOOST_BRANCH=master
|
if "%GITHUB_BASE_REF%" == "master" set BOOST_BRANCH=master
|
||||||
cd ..
|
cd ..
|
||||||
git clone -b %BOOST_BRANCH% --depth 1 https://github.com/boostorg/boost.git boost-root
|
git clone -b %BOOST_BRANCH% --depth 1 https://github.com/boostorg/boost.git boost-root
|
||||||
cd boost-root
|
cd boost-root
|
||||||
|
Reference in New Issue
Block a user