From 515318cf403e6e4b1020f174fe1d1b19155f9765 Mon Sep 17 00:00:00 2001 From: Taishi Kasuga Date: Tue, 23 Sep 2025 17:53:42 +0900 Subject: [PATCH] ci: disable scheduled workflow jobs in forked repositories --- .github/workflows/test.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 4ce3847..8eb2d60 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -22,6 +22,7 @@ defaults: jobs: main: name: Main + if: github.event_name != 'schedule' || github.repository == 'redis-rb/redis-cluster-client' timeout-minutes: 15 runs-on: ubuntu-latest strategy: @@ -82,6 +83,7 @@ jobs: run: docker compose --progress quiet -f $DOCKER_COMPOSE_FILE down || true nat-ted-env: name: NAT-ted Environments + if: github.event_name != 'schedule' || github.repository == 'redis-rb/redis-cluster-client' timeout-minutes: 5 runs-on: ubuntu-latest env: @@ -140,6 +142,7 @@ jobs: run: docker compose --progress quiet -f $DOCKER_COMPOSE_FILE down || true lint: name: Lint + if: github.event_name != 'schedule' || github.repository == 'redis-rb/redis-cluster-client' timeout-minutes: 5 runs-on: ubuntu-latest steps: @@ -154,6 +157,7 @@ jobs: run: bundle exec rubocop benchmark: name: Benchmark + if: github.event_name != 'schedule' || github.repository == 'redis-rb/redis-cluster-client' timeout-minutes: 10 runs-on: ubuntu-latest env: @@ -214,6 +218,7 @@ jobs: run: docker compose --progress quiet -f $DOCKER_COMPOSE_FILE down || true ips: name: IPS + if: github.event_name != 'schedule' || github.repository == 'redis-rb/redis-cluster-client' timeout-minutes: 10 runs-on: ubuntu-latest env: @@ -246,6 +251,7 @@ jobs: run: docker compose --progress quiet -f $DOCKER_COMPOSE_FILE down || true profiling: name: Profiling + if: github.event_name != 'schedule' || github.repository == 'redis-rb/redis-cluster-client' timeout-minutes: 5 runs-on: ubuntu-latest strategy: @@ -284,6 +290,7 @@ jobs: run: docker compose --progress quiet -f $DOCKER_COMPOSE_FILE down || true massive: name: Massive Cluster + if: github.event_name != 'schedule' || github.repository == 'redis-rb/redis-cluster-client' timeout-minutes: 10 runs-on: ubuntu-latest env: