Skip to content

Commit 945bc4f

Browse files
authored
Merge pull request #63 from LiusCraft/ci/fix-deploy-web-pr
Fix PR deployment workflow to use correct ref and event
2 parents f1f40be + 90559a7 commit 945bc4f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/deploy-frontend.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
steps:
1616
- name: Checkout code
1717
uses: actions/checkout@v4
18+
with:
19+
ref: ${{ github.event.pull_request.head.sha }}
1820

1921
- name: Setup Node.js
2022
uses: actions/setup-node@v4
@@ -44,7 +46,7 @@ jobs:
4446
scope: ${{ secrets.VERCEL_ORG_ID }}
4547

4648
- name: Comment PR
47-
if: github.event_name == 'pull_request'
49+
if: github.event_name == 'pull_request_target'
4850
uses: actions/github-script@v7
4951
with:
5052
script: |

0 commit comments

Comments
 (0)