Skip to content

Commit ec8cd58

Browse files
committed
gha - new cache does not allow overwrite
and it does not deal with skipping existing cache. So it is a bit different that `save-always`. Cache will only be updated when renv.lock changes
1 parent 7aad8ed commit ec8cd58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/test-smokes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ jobs:
301301

302302
- name: Save Renv package cache
303303
# don't save cache if we have extra R packages
304-
if: ${{ always() && inputs.extra-r-packages == '' }}
304+
if: ${{ always() && steps.cache-renv-packages-restore.outputs.cache-hit != 'true' && inputs.extra-r-packages == '' }}
305305
uses: actions/cache/save@v4
306306
with:
307307
path: |

0 commit comments

Comments
 (0)