From 2d391e62bd5c80d75f50754bd5f05ef15a73fab7 Mon Sep 17 00:00:00 2001 From: Ozan Tezcan Date: Sat, 29 Jan 2022 20:02:35 +0300 Subject: [PATCH] Skip external server and codeql cron tests on forks (#10204) keep the push triggers for all repos, but run the scheduled ones only on redis/redis --- .github/workflows/codeql-analysis.yml | 1 + .github/workflows/external.yml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index a940b794d..603a05fdd 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -11,6 +11,7 @@ jobs: analyze: name: Analyze runs-on: ubuntu-latest + if: github.event_name != 'schedule' || github.repository == 'redis/redis' strategy: fail-fast: false diff --git a/.github/workflows/external.yml b/.github/workflows/external.yml index b378236b2..b8671f43a 100644 --- a/.github/workflows/external.yml +++ b/.github/workflows/external.yml @@ -9,6 +9,7 @@ on: jobs: test-external-standalone: runs-on: ubuntu-latest + if: github.event_name != 'schedule' || github.repository == 'redis/redis' timeout-minutes: 14400 steps: - uses: actions/checkout@v2 @@ -32,6 +33,7 @@ jobs: test-external-cluster: runs-on: ubuntu-latest + if: github.event_name != 'schedule' || github.repository == 'redis/redis' timeout-minutes: 14400 steps: - uses: actions/checkout@v2 @@ -58,6 +60,7 @@ jobs: test-external-nodebug: runs-on: ubuntu-latest + if: github.event_name != 'schedule' || github.repository == 'redis/redis' timeout-minutes: 14400 steps: - uses: actions/checkout@v2