Skip to content

Commit

Permalink
Disable some workflows on forks (#4919)
Browse files Browse the repository at this point in the history
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 <abas@vmware.com>
  • Loading branch information
antoninbas authored May 2, 2023
1 parent 7799407 commit 512ba23
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/netpol_cyclonus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/verify_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 512ba23

Please sign in to comment.