diff --git a/build.bat b/build.bat index a45be78b4..ca4e966f3 100644 --- a/build.bat +++ b/build.bat @@ -45,6 +45,11 @@ echo WEASEL_ROOT=%WEASEL_ROOT% echo WEASEL_BUNDLED_RECIPES=%WEASEL_BUNDLED_RECIPES% echo. +if defined GITHUB_ENV ( + setlocal enabledelayedexpansion + echo git_ref_name=%PRODUCT_VERSION%>>!GITHUB_ENV! +) + if defined BOOST_ROOT ( if exist "%BOOST_ROOT%\boost" goto boost_found ) diff --git a/xbuild.bat b/xbuild.bat index 5ebacb4f1..c8a50fde6 100644 --- a/xbuild.bat +++ b/xbuild.bat @@ -54,6 +54,12 @@ echo WEASEL_BUILD=%WEASEL_BUILD% echo WEASEL_ROOT=%WEASEL_ROOT% echo WEASEL_BUNDLED_RECIPES=%WEASEL_BUNDLED_RECIPES% echo BOOST_ROOT=%BOOST_ROOT% + +if defined GITHUB_ENV ( + setlocal enabledelayedexpansion + echo git_ref_name=%PRODUCT_VERSION%>>!GITHUB_ENV! +) + rem --------------------------------------------------------------------------- rem parse the command line options set build_config=release