Skip to content

Commit

Permalink
Avoid running jobs twice
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-lee committed Aug 19, 2024
1 parent 9ba41a1 commit aa8c449
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ name: Test
on:
workflow_dispatch:
push:
branches:
- main
pull_request:

jobs:
test:
runs-on: ubuntu-latest
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
Expand Down

0 comments on commit aa8c449

Please sign in to comment.