Skip to content

Commit

Permalink
ci: prevent double workflow runs
Browse files Browse the repository at this point in the history
  • Loading branch information
schoero committed Oct 24, 2023
1 parent 86283cb commit ac0e685
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
name: CI

on:
pull_request:
branches:
- main
- master
paths-ignore:
- "docs/**"

push:
paths-ignore:
- "docs/**"
- pull_request
- push

jobs:
lint:
if: github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name !=
github.event.pull_request.base.repo.full_name
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -32,6 +27,9 @@ jobs:
run: npm run spellcheck:ci

test:
if: github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name !=
github.event.pull_request.base.repo.full_name
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit ac0e685

Please sign in to comment.