Skip to content

Commit

Permalink
gha - new cache does not allow overwrite
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cderv committed Feb 18, 2025
1 parent 7aad8ed commit ec8cd58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test-smokes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ jobs:

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

0 comments on commit ec8cd58

Please sign in to comment.