Skip to content

Commit 9dea498

Browse files
committed
Simplify condition to dedupe CI jobs
1 parent 7f3203a commit 9dea498

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/lint-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
lint:
1515
runs-on: ubuntu-latest
1616
# Skip `pull_request` runs on local PRs for which `push` runs are already triggered
17-
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
17+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
1818

1919
steps:
2020
- name: Checkout 🏷️
@@ -47,7 +47,7 @@ jobs:
4747
test:
4848
runs-on: ubuntu-latest
4949
# Skip `pull_request` runs on local PRs for which `push` runs are already triggered
50-
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
50+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
5151

5252
steps:
5353
- name: Checkout 🏷️
@@ -114,7 +114,7 @@ jobs:
114114
packages:
115115
runs-on: ubuntu-latest
116116
# Skip `pull_request` runs on local PRs for which `push` runs are already triggered
117-
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
117+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
118118

119119
steps:
120120
- name: Checkout 🏷️
@@ -147,7 +147,7 @@ jobs:
147147
e2e:
148148
runs-on: ubuntu-latest
149149
# Skip `pull_request` runs on local PRs for which `push` runs are already triggered
150-
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
150+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
151151

152152
steps:
153153
- name: Checkout 🏷️

0 commit comments

Comments
 (0)