Skip to content

Commit

Permalink
Avoid running action more than once when push to a PR
Browse files Browse the repository at this point in the history
  • Loading branch information
jodeleeuw authored Jan 17, 2025
1 parent 8ccaa5c commit 50a3f20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on: [push, pull_request]
jobs:
test:
name: Build, lint, and test on Node.js ${{ matrix.node }}

# Prevent the action running twice when the event is both a push and pull request
if: github.event_name != 'push' || github.event_name == 'push && !github.event.pull_request
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down

0 comments on commit 50a3f20

Please sign in to comment.