File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,10 @@ jobs:
4444 id : composer-cache
4545 run : echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
4646
47- - uses : actions/cache@v4
48- name : Setup package cache
47+ - uses : actions/cache/restore@v4
48+ name : Restore package cache
49+ id : restore-package-cache
4950 with :
50- save-always : true
5151 path : |
5252 ${{ steps.pnpm-cache.outputs.dir }}
5353 ${{ steps.composer-cache.outputs.dir }}
6060 run : |
6161 composer install --prefer-dist --no-progress
6262 pnpm install
63+
64+ - uses : actions/cache/save@v4
65+ name : Save package cache
66+ if : always() && steps.restore-package-cache.outputs.cache-hit != 'true'
67+ with :
68+ path : |
69+ ${{ steps.pnpm-cache.outputs.dir }}
70+ ${{ steps.composer-cache.outputs.dir }}
6371
6472 - name : Run Lefthook
6573 run : pnpm lefthook run github-actions
You can’t perform that action at this time.
0 commit comments