Skip to content

Commit 13826ae

Browse files
authored
don't upload cache if password is not set (#454)
1 parent 456ca6d commit 13826ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/ci/build.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ if not "%TOOLCHAIN:vs-=%"=="%TOOLCHAIN%" set HUNTER_BINARY_DIR=C:\__BIN
4545
:: Add msbuild to PATH (for vs-14 toolchain, GitHub windows-2016 runner doesn't have VS 2015)
4646
if "%TOOLCHAIN:~0,5%"=="vs-14" set PATH=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin;%PATH%
4747

48-
if "%BRANCH_NAME%" == "master" (
48+
if "%BRANCH_NAME%" == "master" if not "%GITHUB_USER_PASSWORD%" == "" (
4949
python jenkins.py --upload
5050
) else (
5151
python jenkins.py

.github/workflows/ci/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ if [[ "$TOOLCHAIN" =~ "osx-11-0" ]]; then
3535
fi
3636

3737
# Run build script
38-
if [[ "$BRANCH_NAME" == "master" ]]; then
38+
if [[ "$BRANCH_NAME" == "master" && ! -z "$GITHUB_USER_PASSWORD" ]]; then
3939
python jenkins.py --upload
4040
else
4141
python jenkins.py

0 commit comments

Comments
 (0)