Skip to content

Commit

Permalink
fix: github actions was checking out the wrong ref
Browse files Browse the repository at this point in the history
  • Loading branch information
lquixada committed Dec 11, 2024
1 parent f3f0553 commit 891dbe8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.sha }}
- uses: actions/cache@v3
with:
path: ~/.npm # this is cache where npm installs from before going out to the network
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ jobs:
name: Install
runs-on: ubuntu-latest
steps:
- name: Blah
run: echo blah
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Cache node_modules
id: cacheModules
uses: actions/cache@v3
Expand Down

0 comments on commit 891dbe8

Please sign in to comment.