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 }