[fenix] Only run the build-contributor-pr workflow on forks (https://github.com/mozilla-mobile/fenix/pull/18082)

pull/600/head
sarentz 3 years ago committed by GitHub
parent 5fec5b8d61
commit a68ba7e726

@ -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