Skip to content

Commit 5e54963

Browse files
committed
fix preview checkout
1 parent 6eb3711 commit 5e54963

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/deploy-preview.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: 'Preview Deployment'
22
on:
33
pull_request_target:
4+
types: [opened, synchronize, reopened]
45
branches:
56
- master
67

@@ -16,6 +17,8 @@ jobs:
1617
steps:
1718
- name: Checkout code
1819
uses: actions/checkout@v4
20+
with:
21+
ref: ${{ github.event.pull_request.head.sha }}
1922

2023
- name: Cache node_modules
2124
uses: actions/cache@v4

0 commit comments

Comments
 (0)