From 512ba23bdc3ced8364cbdbdff7b00b54a6facfec Mon Sep 17 00:00:00 2001 From: Antonin Bas Date: Tue, 2 May 2023 12:44:13 -0700 Subject: [PATCH] Disable some workflows on forks (#4919) There is little point in running scheduled workflows on forks. It can generate unhelpful notifications and it wastes compute resources. The workflow that updates the antrea.io website automatically should also be disabled for forks. Signed-off-by: Antonin Bas --- .github/workflows/netpol_cyclonus.yml | 2 +- .github/workflows/verify_docs.yml | 1 + .github/workflows/website.yml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/netpol_cyclonus.yml b/.github/workflows/netpol_cyclonus.yml index a0cad16436c..f299d4f681e 100644 --- a/.github/workflows/netpol_cyclonus.yml +++ b/.github/workflows/netpol_cyclonus.yml @@ -8,9 +8,9 @@ env: KIND_VERSION: v0.12.0 jobs: - test-netpol-cyclonus: name: Run Cyclonus network policy generator tests on Kind cluster + if: github.repository == 'antrea-io/antrea' runs-on: [ubuntu-latest] steps: - name: Free disk space diff --git a/.github/workflows/verify_docs.yml b/.github/workflows/verify_docs.yml index 6867c3df858..a9500d4289e 100644 --- a/.github/workflows/verify_docs.yml +++ b/.github/workflows/verify_docs.yml @@ -8,6 +8,7 @@ on: jobs: verify: name: Verify docs and spelling + if: github.repository == 'antrea-io/antrea' runs-on: [ubuntu-latest] steps: - name: Check-out code diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 8703b4065ef..e004fcc5901 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -13,6 +13,7 @@ on: jobs: update-website: name: Trigger website update for main + if: github.repository == 'antrea-io/antrea' runs-on: ubuntu-latest steps: - name: Update website source