Skip to content

Commit bf135cd

Browse files
committed
ci: fix pull request ref for checkout
1 parent f1e3e93 commit bf135cd

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/verify-build.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
14+
with:
15+
ref: ${{ github.event.pull_request.head.sha }}
1416

1517
- name: install
1618
run: npm ci
@@ -25,7 +27,9 @@ jobs:
2527
runs-on: ubuntu-latest
2628
steps:
2729
- name: Checkout
28-
uses: actions/checkout@v3
30+
uses: actions/checkout@v4
31+
with:
32+
ref: ${{ github.event.pull_request.head.sha }}
2933

3034
- name: install
3135
run: npm ci
@@ -37,7 +41,9 @@ jobs:
3741
runs-on: ubuntu-20.04
3842
steps:
3943
- name: Checkout
40-
uses: actions/checkout@v3
44+
uses: actions/checkout@v4
45+
with:
46+
ref: ${{ github.event.pull_request.head.sha }}
4147

4248
- name: install
4349
run: npm ci
@@ -49,7 +55,9 @@ jobs:
4955
runs-on: ubuntu-latest
5056
steps:
5157
- name: Checkout
52-
uses: actions/checkout@v3
58+
uses: actions/checkout@v4
59+
with:
60+
ref: ${{ github.event.pull_request.head.sha }}
5361

5462
- name: install
5563
run: npm ci

0 commit comments

Comments
 (0)