Don't run certain GHA jobs on forks

Don't run jobs that aren't triggered on pull request on forks.
Forks aren't likely to need these jobs, and theyre more likely to fail
there.

Signed-off-by: Mike Kolesnik <mkolesni@redhat.com>
This commit is contained in:
Mike Kolesnik
2021-05-12 07:35:11 -04:00
committed by Thomas Pantelis
parent f0a0ae93bf
commit 6f94f29563
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -8,6 +8,7 @@ on:
jobs:
e2e:
name: E2E
if: github.repository_owner == 'submariner-io'
timeout-minutes: 30
runs-on: ubuntu-latest
strategy:
+1
View File
@@ -8,6 +8,7 @@ on:
jobs:
markdown-link-check-periodic:
name: Markdown Links (all files)
if: github.repository_owner == 'submariner-io'
runs-on: ubuntu-latest
steps:
- name: Check out the repository
+1
View File
@@ -9,6 +9,7 @@ on:
jobs:
release:
name: Release
if: github.repository_owner == 'submariner-io'
runs-on: ubuntu-latest
steps:
- name: Checkout