From b778f7a5c0345f723396caf3aaf69c260e9f0d83 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 20 Nov 2020 02:39:03 +0200 Subject: [PATCH] Use GITHUB_BASE_REF on Windows as well --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 344da48..b048bd0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -84,8 +84,9 @@ jobs: if: "startsWith( matrix.os, 'windows-' )" shell: cmd run: | + if "%GITHUB_BASE_REF%" == "" set GITHUB_BASE_REF=%GITHUB_REF% set BOOST_BRANCH=develop - if "%GITHUB_REF%" == "master" set BOOST_BRANCH=master + if "%GITHUB_BASE_REF%" == "master" set BOOST_BRANCH=master cd .. git clone -b %BOOST_BRANCH% --depth 1 https://github.com/boostorg/boost.git boost-root cd boost-root