Skip to content

Commit

Permalink
fix(nx): update cache strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Apr 12, 2024
1 parent 67e2dc4 commit d5d49c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions nx-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ runs:
uses: actions/cache/restore@v4
with:
path: ${{ inputs.cache-dir }}
key: '${{ runner.os }}-nx-cache-${{ github.sha }}'
key: '${{ runner.os }}-nx-cache-${{ github.sha }}-${{ github.run_id }}-${{ github.run_number }}'
restore-keys: |
${{ runner.os }}-nx-cache-
${{ runner.os }}-nx-cache-${{ github.sha }}-${{ github.run_id }}-
${{ runner.os }}-nx-cache-${{ github.sha }}-
- name: 'Prune cache'
if: steps.cache.outputs.cache-hit == 'true'
Expand Down
2 changes: 1 addition & 1 deletion nx-run-many/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ runs:
uses: actions/cache/save@v4
with:
path: ${{ inputs.cache-dir }}
key: '${{ runner.os }}-nx-cache-${{ github.sha }}'
key: '${{ runner.os }}-nx-cache-${{ github.sha }}-${{ github.run_id }}-${{ github.run_number }}'

0 comments on commit d5d49c1

Please sign in to comment.