From d3f422f809309ffd4266a306e25746ca80b776b7 Mon Sep 17 00:00:00 2001 From: drodin Date: Wed, 28 Jul 2021 09:39:20 +0200 Subject: [PATCH] don't upload cache if password is not set --- .github/workflows/ci/build.cmd | 2 +- .github/workflows/ci/build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci/build.cmd b/.github/workflows/ci/build.cmd index bcd6ea1ce6..d32846d229 100644 --- a/.github/workflows/ci/build.cmd +++ b/.github/workflows/ci/build.cmd @@ -45,7 +45,7 @@ if not "%TOOLCHAIN:vs-=%"=="%TOOLCHAIN%" set HUNTER_BINARY_DIR=C:\__BIN :: Add msbuild to PATH (for vs-14 toolchain, GitHub windows-2016 runner doesn't have VS 2015) if "%TOOLCHAIN:~0,5%"=="vs-14" set PATH=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin;%PATH% -if "%BRANCH_NAME%" == "master" ( +if "%BRANCH_NAME%" == "master" if not "%GITHUB_USER_PASSWORD%" == "" ( python jenkins.py --upload ) else ( python jenkins.py diff --git a/.github/workflows/ci/build.sh b/.github/workflows/ci/build.sh index a482317898..23b74d8f31 100644 --- a/.github/workflows/ci/build.sh +++ b/.github/workflows/ci/build.sh @@ -35,7 +35,7 @@ if [[ "$TOOLCHAIN" =~ "osx-11-0" ]]; then fi # Run build script -if [[ "$BRANCH_NAME" == "master" ]]; then +if [[ "$BRANCH_NAME" == "master" && ! -z "$GITHUB_USER_PASSWORD" ]]; then python jenkins.py --upload else python jenkins.py