Closed querkmachine closed 8 months ago
Ended up following the suggestions in this tips and workarounds document.
It turns out that caches are immutable. Now, when the action is run:
eleventy-fetch-cache-
is used.eleventy-fetch-cache-<run ID>
is created.This has the side effect of new caches that are potentially identical being created on every run, but these are garbage collected automatically by GitHub after a couple of weeks. Run times have seemingly gone down from 3–4 minutes to 60–90 seconds, so it's hopefully helping now. 🤞
Turns out you can't override a GitHub Actions cache by saving a new one with the same name. How annoying.