Skip to content

Commit 6ad3904

Browse files
authored
Fix test workflow (#10)
1 parent 82b4a70 commit 6ad3904

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/tests.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
name: Run Tests
22

33
on:
4-
pull_request:
5-
branches: [main]
4+
pull_request_target:
5+
types: [opened, synchronize, reopened]
66

77
jobs:
88
test:
99
runs-on: ubuntu-latest
10-
10+
if: |
11+
github.event.pull_request.head.repo.full_name == github.repository ||
12+
github.event.pull_request.head.ref == 'changeset-release/main'
1113
steps:
1214
- uses: actions/checkout@v3
15+
with:
16+
ref: ${{ github.event.pull_request.head.sha }}
1317

1418
- name: Use Node.js
1519
uses: actions/setup-node@v3
20+
with:
21+
node-version: "20"
1622

1723
- run: corepack enable
1824

0 commit comments

Comments
 (0)