Skip to content

Commit

Permalink
Check duplicate CI runs (push vs pr)
Browse files Browse the repository at this point in the history
  • Loading branch information
mweirauch committed May 26, 2024
1 parent 07a0242 commit 42d0254
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@ on:
types: [tag-release]

jobs:
check-duplicate-runs:
name: Check Duplicate Runs
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name

lint:
name: Lint
needs: [check-duplicate-runs]
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -30,6 +36,7 @@ jobs:

test:
name: Test
needs: [check-duplicate-runs]
strategy:
matrix:
os:
Expand Down

0 comments on commit 42d0254

Please sign in to comment.