summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorOzan Tezcan <ozantezcan@gmail.com>2021-11-11 15:39:20 +0300
committerGitHub <noreply@github.com>2021-11-11 14:39:20 +0200
commitbcb7961f12691c874c982a0a44839d2ef32e13dc (patch)
tree808fe16787ec3b5c94ae3822359296b5113d299a /.github
parentb91d8b289bb64965c5eaa445809f9f49293e99c0 (diff)
downloadredis-bcb7961f12691c874c982a0a44839d2ef32e13dc.tar.gz
Enable running daily CI from forks (#9771)
Was impossible to run the daily CI from private forks due to "redis/redis" repo check. Let's disable that check for manual triggers.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/daily.yml64
1 files changed, 48 insertions, 16 deletions
diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml
index 1fe1c5beb..5bf8d1f63 100644
--- a/.github/workflows/daily.yml
+++ b/.github/workflows/daily.yml
@@ -33,7 +33,9 @@ jobs:
test-ubuntu-jemalloc:
runs-on: ubuntu-latest
- if: github.repository == 'redis/redis'
+ if: |
+ github.event_name == 'workflow_dispatch' ||
+ (github.event_name == 'schedule' && github.repository == 'redis/redis')
timeout-minutes: 14400
steps:
- name: prep
@@ -67,7 +69,9 @@ jobs:
test-ubuntu-libc-malloc:
runs-on: ubuntu-latest
- if: github.repository == 'redis/redis'
+ if: |
+ github.event_name == 'workflow_dispatch' ||
+ (github.event_name == 'schedule' && github.repository == 'redis/redis')
timeout-minutes: 14400
steps:
- name: prep
@@ -98,7 +102,9 @@ jobs:
test-ubuntu-no-malloc-usable-size:
runs-on: ubuntu-latest
- if: github.repository == 'redis/redis'
+ if: |
+ github.event_name == 'workflow_dispatch' ||
+ (github.event_name == 'schedule' && github.repository == 'redis/redis')
timeout-minutes: 14400
steps:
- name: prep
@@ -129,7 +135,9 @@ jobs:
test-ubuntu-32bit:
runs-on: ubuntu-latest
- if: github.repository == 'redis/redis' && !contains(github.event.inputs.skipjobs, '32bit')
+ if: |
+ (github.event_name == 'workflow_dispatch' ||
+ (github.event_name == 'schedule' && github.repository == 'redis/redis')) && !contains(github.event.inputs.skipjobs, '32bit')
timeout-minutes: 14400
steps:
- name: prep
@@ -166,7 +174,9 @@ jobs:
test-ubuntu-tls:
runs-on: ubuntu-latest
- if: github.repository == 'redis/redis' && !contains(github.event.inputs.skipjobs, 'tls')
+ if: |
+ (github.event_name == 'workflow_dispatch' ||
+ (github.event_name == 'schedule' && github.repository == 'redis/redis')) && !contains(github.event.inputs.skipjobs, 'tls')
timeout-minutes: 14400
steps:
- name: prep
@@ -208,7 +218,9 @@ jobs:
test-ubuntu-io-threads:
runs-on: ubuntu-latest
- if: github.repository == 'redis/redis' && !contains(github.event.inputs.skipjobs, 'iothreads')
+ if: |
+ (github.event_name == 'workflow_dispatch' ||
+ (github.event_name == 'schedule' && github.repository == 'redis/redis')) && !contains(github.event.inputs.skipjobs, 'iothreads')
timeout-minutes: 14400
steps:
- name: prep
@@ -234,7 +246,9 @@ jobs:
test-valgrind:
runs-on: ubuntu-latest
- if: github.repository == 'redis/redis' && !contains(github.event.inputs.skipjobs, 'valgrind')
+ if: |
+ (github.event_name == 'workflow_dispatch' ||
+ (github.event_name == 'schedule' && github.repository == 'redis/redis')) && !contains(github.event.inputs.skipjobs, 'valgrind')
timeout-minutes: 14400
steps:
- name: prep
@@ -265,7 +279,9 @@ jobs:
test-valgrind-no-malloc-usable-size:
runs-on: ubuntu-latest
- if: github.repository == 'redis/redis' && !contains(github.event.inputs.skipjobs, 'valgrind')
+ if: |
+ (github.event_name == 'workflow_dispatch' ||
+ (github.event_name == 'schedule' && github.repository == 'redis/redis')) && !contains(github.event.inputs.skipjobs, 'valgrind')
timeout-minutes: 14400
steps:
- name: prep
@@ -292,7 +308,9 @@ jobs:
test-sanitizer-address:
runs-on: ubuntu-latest
- if: github.repository == 'redis/redis' && !contains(github.event.inputs.skipjobs, 'sanitizer')
+ if: |
+ (github.event_name == 'workflow_dispatch' ||
+ (github.event_name == 'schedule' && github.repository == 'redis/redis')) && !contains(github.event.inputs.skipjobs, 'sanitizer')
timeout-minutes: 14400
strategy:
matrix:
@@ -332,7 +350,9 @@ jobs:
test-sanitizer-undefined:
runs-on: ubuntu-latest
- if: github.repository == 'redis/redis' && !contains(github.event.inputs.skipjobs, 'sanitizer')
+ if: |
+ (github.event_name == 'workflow_dispatch' ||
+ (github.event_name == 'schedule' && github.repository == 'redis/redis')) && !contains(github.event.inputs.skipjobs, 'sanitizer')
timeout-minutes: 14400
strategy:
matrix:
@@ -372,7 +392,9 @@ jobs:
test-centos7-jemalloc:
runs-on: ubuntu-latest
- if: github.repository == 'redis/redis'
+ if: |
+ github.event_name == 'workflow_dispatch' ||
+ (github.event_name == 'schedule' && github.repository == 'redis/redis')
container: centos:7
timeout-minutes: 14400
steps:
@@ -406,7 +428,9 @@ jobs:
test-centos7-tls:
runs-on: ubuntu-latest
- if: github.repository == 'redis/redis' && !contains(github.event.inputs.skipjobs, 'tls')
+ if: |
+ (github.event_name == 'workflow_dispatch' ||
+ (github.event_name == 'schedule' && github.repository == 'redis/redis')) && !contains(github.event.inputs.skipjobs, 'tls')
container: centos:7
timeout-minutes: 14400
steps:
@@ -451,7 +475,9 @@ jobs:
test-macos-latest:
runs-on: macos-latest
- if: github.repository == 'redis/redis' && !contains(github.event.inputs.skipjobs, 'macos')
+ if: |
+ (github.event_name == 'workflow_dispatch' ||
+ (github.event_name == 'schedule' && github.repository == 'redis/redis')) && !contains(github.event.inputs.skipjobs, 'macos')
timeout-minutes: 14400
steps:
- name: prep
@@ -480,7 +506,9 @@ jobs:
test-freebsd:
runs-on: macos-10.15
- if: github.repository == 'redis/redis' && !contains(github.event.inputs.skipjobs, 'freebsd')
+ if: |
+ (github.event_name == 'workflow_dispatch' ||
+ (github.event_name == 'schedule' && github.repository == 'redis/redis')) && !contains(github.event.inputs.skipjobs, 'freebsd')
timeout-minutes: 14400
steps:
- name: prep
@@ -507,7 +535,9 @@ jobs:
test-alpine-jemalloc:
runs-on: ubuntu-latest
- if: github.repository == 'redis/redis' && !contains(github.event.inputs.skipjobs, 'alpine')
+ if: |
+ (github.event_name == 'workflow_dispatch' ||
+ (github.event_name == 'schedule' && github.repository == 'redis/redis')) && !contains(github.event.inputs.skipjobs, 'alpine')
container: alpine:latest
steps:
- name: prep
@@ -540,7 +570,9 @@ jobs:
test-alpine-libc-malloc:
runs-on: ubuntu-latest
- if: github.repository == 'redis/redis' && !contains(github.event.inputs.skipjobs, 'alpine')
+ if: |
+ (github.event_name == 'workflow_dispatch' ||
+ (github.event_name == 'schedule' && github.repository == 'redis/redis')) && !contains(github.event.inputs.skipjobs, 'alpine')
container: alpine:latest
steps:
- name: prep