Skip to content

Commit 05b60cf

Browse files
committed
Fix ref to push from a forked repo
1 parent bd9be41 commit 05b60cf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/frontend-lint-test-build.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
- name: Checkout
5252
uses: actions/checkout@v4
5353
with:
54-
ref: ${{ github.head_ref }}
54+
ref: ${{ github.event.pull_request.head.ref }}
5555

5656
- name: Setup Node
5757
uses: actions/setup-node@v4
@@ -195,7 +195,7 @@ jobs:
195195
- name: Checkout
196196
uses: actions/checkout@v4
197197
with:
198-
ref: ${{ github.head_ref }}
198+
ref: ${{ github.event.pull_request.head.ref }}
199199

200200
- name: Setup Node
201201
uses: actions/setup-node@v4
@@ -228,7 +228,7 @@ jobs:
228228
- name: Checkout
229229
uses: actions/checkout@v4
230230
with:
231-
ref: ${{ github.head_ref }}
231+
ref: ${{ github.event.pull_request.head.ref }}
232232

233233
- name: Setup Node
234234
uses: actions/setup-node@v4
@@ -261,7 +261,7 @@ jobs:
261261
- name: Checkout
262262
uses: actions/checkout@v4
263263
with:
264-
ref: ${{ github.head_ref }}
264+
ref: ${{ github.event.pull_request.head.ref }}
265265

266266
- name: Setup Node
267267
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)