Skip to content

Commit

Permalink
fix(nx-cache): fix saving nx cache
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Apr 5, 2024
1 parent 302560b commit bd42c73
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions nx-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ outputs:
runs:
using: composite
steps:
- name: 'Cache Nx'
uses: actions/cache@v4
id: cache
- name: 'Restore nx cache'
uses: actions/cache/restore@v4
with:
path: ${{ inputs.cache-dir }}
key: ${{ runner.os }}-nx-cache
Expand Down Expand Up @@ -92,3 +91,9 @@ runs:
done
echo "Pruned cache from $startSize KB to $totalSize KB by deleting $i items."
- name: 'Save nx cache'
uses: actions/cache/save@v4
with:
path: ${{ inputs.cache-dir }}
key: ${{ runner.os }}-nx-cache

0 comments on commit bd42c73

Please sign in to comment.