Skip to content

Commit f7997bf

Browse files
committed
fix: github actions was checking out the wrong ref
1 parent f3f0553 commit f7997bf

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/checks.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
1414
steps:
1515
- uses: actions/checkout@v3
16+
with:
17+
ref: ${{ github.sha }}
1618
- uses: actions/cache@v3
1719
with:
1820
path: ~/.npm # this is cache where npm installs from before going out to the network

.github/workflows/pr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
runs-on: ubuntu-latest
3030
steps:
3131
- uses: actions/checkout@v3
32+
with:
33+
ref: ${{ github.event.pull_request.head.sha }}
3234
- name: Cache node_modules
3335
id: cacheModules
3436
uses: actions/cache@v3

0 commit comments

Comments
 (0)