Skip to content

Commit

Permalink
Check duplicate CI runs (push vs pr)
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
mweirauch committed May 26, 2024
1 parent 07a0242 commit 942bb9c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@ 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
steps: []

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

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

0 comments on commit 942bb9c

Please sign in to comment.