Skip to content

Commit 8ca3e78

Browse files
committed
changed test and build github action to only trigger on pull requests
1 parent 5e6ab4f commit 8ca3e78

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/test-and-build.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
name: Test Suite
22

33
on:
4-
push:
5-
branches: [main]
64
pull_request:
7-
# The branches below must be a subset of the branches above
85
branches: [main]
96

107
jobs:
@@ -17,7 +14,7 @@ jobs:
1714
- name: Checkout code
1815
uses: actions/checkout@v2
1916
with:
20-
ref: ${{ if github.event_name == 'pull_request' }}${{ github.event.pull_request.head.sha }}${{ else }}${{ github.ref }}${{ endif }}
17+
ref: ${{ github.event.pull_request.head.sha }}
2118
fetch-depth: 0
2219

2320
- name: Use Node.js ${{ matrix.node-version }}

0 commit comments

Comments
 (0)