From 6fa0044c3b322015d667f5d4b1c610161d144601 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Fri, 24 Nov 2023 17:30:07 +0100 Subject: [PATCH] only run jobs on asf project (#140) --- .github/workflows/integration-tests-kube-api.yml | 3 ++- .github/workflows/integration-tests-kube-dns.yml | 3 ++- .github/workflows/integration-tests-lease.yml | 3 ++- .github/workflows/integration-tests-maven.yml | 3 ++- .github/workflows/mima-check.yml | 1 + .github/workflows/unit-tests.yml | 2 ++ 6 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration-tests-kube-api.yml b/.github/workflows/integration-tests-kube-api.yml index 33fef672..90397f83 100644 --- a/.github/workflows/integration-tests-kube-api.yml +++ b/.github/workflows/integration-tests-kube-api.yml @@ -11,9 +11,10 @@ on: - cron: '0 2 * * *' # every day 2am jobs: - integration-test: + integration-test: name: Integration Tests for Kubernetes API runs-on: ubuntu-20.04 + if: github.repository == 'apache/incubator-pekko-management' strategy: fail-fast: false steps: diff --git a/.github/workflows/integration-tests-kube-dns.yml b/.github/workflows/integration-tests-kube-dns.yml index 9aded75e..5907224b 100644 --- a/.github/workflows/integration-tests-kube-dns.yml +++ b/.github/workflows/integration-tests-kube-dns.yml @@ -11,9 +11,10 @@ on: - cron: '0 2 * * *' # every day 2am jobs: - integration-test: + integration-test: name: Integration Tests for Kubernetes DNS runs-on: ubuntu-20.04 + if: github.repository == 'apache/incubator-pekko-management' strategy: fail-fast: false steps: diff --git a/.github/workflows/integration-tests-lease.yml b/.github/workflows/integration-tests-lease.yml index de3f75b0..569fbc5b 100644 --- a/.github/workflows/integration-tests-lease.yml +++ b/.github/workflows/integration-tests-lease.yml @@ -11,9 +11,10 @@ on: - cron: '0 2 * * *' # every day 2am jobs: - integration-test: + integration-test: name: Integration test for Kubernetes Lease runs-on: ubuntu-20.04 + if: github.repository == 'apache/incubator-pekko-management' strategy: fail-fast: false steps: diff --git a/.github/workflows/integration-tests-maven.yml b/.github/workflows/integration-tests-maven.yml index dc9a02c8..5581ad10 100644 --- a/.github/workflows/integration-tests-maven.yml +++ b/.github/workflows/integration-tests-maven.yml @@ -10,9 +10,10 @@ on: # Different from its siblings, we don't configure this workflow to run as a cron job. jobs: - integration-test: + integration-test: name: Integration Tests for Kubernetes API with Maven runs-on: ubuntu-20.04 + if: github.repository == 'apache/incubator-pekko-management' strategy: fail-fast: false steps: diff --git a/.github/workflows/mima-check.yml b/.github/workflows/mima-check.yml index 7bb5e339..3000892d 100644 --- a/.github/workflows/mima-check.yml +++ b/.github/workflows/mima-check.yml @@ -12,6 +12,7 @@ jobs: test: name: Build and Test runs-on: ubuntu-22.04 + if: github.repository == 'apache/incubator-pekko-management' steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 1b8e6d40..5360a27c 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -13,6 +13,7 @@ jobs: test: name: Build and Test runs-on: ubuntu-20.04 + if: github.repository == 'apache/incubator-pekko-management' strategy: fail-fast: false matrix: @@ -65,6 +66,7 @@ jobs: slf4j2-test: name: Test Logback with slf4J2 runs-on: ubuntu-20.04 + if: github.repository == 'apache/incubator-pekko-management' steps: - name: Checkout uses: actions/checkout@v4