Skip to content

Commit a314370

Browse files
fix(tooling): fix-all-checkouts-in-gh (#1448)
Co-authored-by: Shreyas Sharma <shreysh2@cisco.com>
1 parent 9c7a503 commit a314370

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/pull-request.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
steps:
2020
- name: Checkout code
2121
uses: actions/checkout@v3
22+
with:
23+
ref: ${{ github.event.pull_request.head.sha }}
2224

2325
- name: Set up Node.js
2426
uses: actions/setup-node@v3
@@ -86,6 +88,8 @@ jobs:
8688
steps:
8789
- name: Checkout code
8890
uses: actions/checkout@v3
91+
with:
92+
ref: ${{ github.event.pull_request.head.sha }}
8993

9094
- name: Set up Node.js
9195
uses: actions/setup-node@v3
@@ -116,6 +120,8 @@ jobs:
116120
steps:
117121
- name: Checkout code
118122
uses: actions/checkout@v3
123+
with:
124+
ref: ${{ github.event.pull_request.head.sha }}
119125

120126
- name: Set up Node.js
121127
uses: actions/setup-node@v3
@@ -171,6 +177,8 @@ jobs:
171177
steps:
172178
- name: Checkout code
173179
uses: actions/checkout@v3
180+
with:
181+
ref: ${{ github.event.pull_request.head.sha }}
174182

175183
- name: Set up Node.js
176184
uses: actions/setup-node@v3

0 commit comments

Comments
 (0)