Skip to content

Commit

Permalink
fix(cache-nx): use correct lockfile hash
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Nov 24, 2022
1 parent e297507 commit 2e0fae0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cache-nx/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: 'Cache Nx build results'
inputs:
lockfile:
description: 'Path to the lockfile'
default: 'yarn.lock'
default: '**/yarn.lock'

runs:
using: composite
Expand All @@ -13,7 +13,7 @@ runs:
uses: actions/cache@v3
with:
path: node_modules/.cache/nx
key: ${{ runner.os }}-cache-nx-${{ hashFiles('${{ inputs.lockfile }}') }}-${{ github.sha }}
key: ${{ runner.os }}-cache-nx-${{ hashFiles(inputs.lockfile) }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-cache-nx-${{ hashFiles('${{ inputs.lockfile }}') }}-
${{ runner.os }}-cache-nx-${{ hashFiles(inputs.lockfile) }}-
${{ runner.os }}-cache-nx-

0 comments on commit 2e0fae0

Please sign in to comment.