Quarto freeze files shouldn't be loaded from cache if environment is different
Closed this issue · 0 comments
In the current workflow, Quarto's _freeze
folder is cached:
docs/.github/workflows/publish.yml
Lines 29 to 37 in 99a9694
This is great as it avoids rerunning all the code if the source qmd files haven't changed (cf. Quarto docs).
However, as far as I can tell, if the environment changes (i.e. the Manifest.toml
) but the source files aren't changed, the code won't be rerun. The correct behaviour should be to rerun if either the source or the environment is changed.
This can be done by hashing the manifests and adding this to the run key: https://docs.github.com/en/actions/learn-github-actions/expressions#hashfiles and also removing the restore-key.
Generally, this means that the docs deployment is more likely to take 2 hours rather than 2 minutes. However, I think that correctness is most important here :)
#497 should fix this.