Skip to content

Commit

Permalink
Run pull_request workflow only if no fork
Browse files Browse the repository at this point in the history
  • Loading branch information
oklemenz2 committed Nov 10, 2023
1 parent 7e6ee6a commit 5e423d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/main-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
test:
runs-on: ubuntu-latest

if: github.event.pull_request.head.repo.fork == false
strategy:
matrix:
node-version: [16, 18]
Expand All @@ -32,6 +32,7 @@ jobs:

lint:
runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.fork == false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand Down

0 comments on commit 5e423d2

Please sign in to comment.