mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
Avoid running action more than once when push to a PR
This commit is contained in:
parent
8ccaa5cb9f
commit
50a3f208ea
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@ -5,7 +5,8 @@ on: [push, pull_request]
|
|||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
name: Build, lint, and test on Node.js ${{ matrix.node }}
|
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
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
Loading…
Reference in New Issue
Block a user