Skip to content

Commit 942bb9c

Browse files
committed
Check duplicate CI runs (push vs pr)
fix
1 parent 07a0242 commit 942bb9c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,15 @@ on:
77
types: [tag-release]
88

99
jobs:
10+
check-duplicate-runs:
11+
name: Check Duplicate Runs
12+
runs-on: ubuntu-latest
13+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
14+
steps: []
15+
1016
lint:
1117
name: Lint
18+
needs: [check-duplicate-runs]
1219
runs-on: ubuntu-latest
1320
steps:
1421
- name: Checkout
@@ -30,6 +37,7 @@ jobs:
3037

3138
test:
3239
name: Test
40+
needs: [check-duplicate-runs]
3341
strategy:
3442
matrix:
3543
os:

0 commit comments

Comments
 (0)