Only run the build-contributor-pr workflow on forks (#18082)

upstream-sync
sarentz 3 years ago committed by GitHub
parent a2566f9e9e
commit 1989d20ff6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3,7 +3,7 @@ on: [pull_request]
jobs:
run-build:
runs-on: ubuntu-20.04
if: github.repository != 'mozilla-mobile/fenix'
if: github.event.pull_request.head.repo.full_name != github.repository
steps:
- name: Checkout repository
uses: actions/checkout@v2
@ -21,7 +21,7 @@ jobs:
run-testDebugUnitTest:
runs-on: ubuntu-20.04
if: github.repository != 'mozilla-mobile/fenix'
if: github.event.pull_request.head.repo.full_name != github.repository
steps:
- name: Checkout repository
uses: actions/checkout@v2
@ -39,7 +39,7 @@ jobs:
run-detekt:
runs-on: ubuntu-20.04
if: github.repository != 'mozilla-mobile/fenix'
if: github.event.pull_request.head.repo.full_name != github.repository
steps:
- name: Checkout repository
uses: actions/checkout@v2
@ -62,7 +62,7 @@ jobs:
run-ktlint:
runs-on: ubuntu-20.04
if: github.repository != 'mozilla-mobile/fenix'
if: github.event.pull_request.head.repo.full_name != github.repository
steps:
- name: Checkout repository
uses: actions/checkout@v2
@ -80,7 +80,7 @@ jobs:
run-lintDebug:
runs-on: ubuntu-20.04
if: github.repository != 'mozilla-mobile/fenix'
if: github.event.pull_request.head.repo.full_name != github.repository
steps:
- name: Checkout repository
uses: actions/checkout@v2

Loading…
Cancel
Save