From dc9ea054cbfd311148d6126c57b366dddd6c794c Mon Sep 17 00:00:00 2001 From: Zak Stucke Date: Tue, 18 Jun 2024 20:30:34 +0300 Subject: [PATCH] Fix --- .github/actions/install-redis/action.yml | 3 ++- dev_scripts/utils.sh | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/actions/install-redis/action.yml b/.github/actions/install-redis/action.yml index c799160b..bd16e25c 100644 --- a/.github/actions/install-redis/action.yml +++ b/.github/actions/install-redis/action.yml @@ -1,9 +1,10 @@ name: install redis -description: "install redis without starting a server" +description: "install redis without starting a server (ONLY IF NOT WINDOWS)" runs: using: composite steps: - uses: shogo82148/actions-setup-redis@v1 + if: runner.os != 'Windows' with: redis-version: "latest" auto-start: false diff --git a/dev_scripts/utils.sh b/dev_scripts/utils.sh index c3b6cf10..3ff75c0c 100755 --- a/dev_scripts/utils.sh +++ b/dev_scripts/utils.sh @@ -119,9 +119,9 @@ ensure_redis () { in_ci () { # Check if any of the CI/CD environment variables are set if [ -n "$GITHUB_ACTIONS" ] || [ -n "$TRAVIS" ] || [ -n "$CIRCLECI" ] || [ -n "$GITLAB_CI" ]; then - 0 + return 0 # Return true else - 1 + return 1 # Return false fi }