Run actions/cache/restore@v3
with:
path: ~/.cabal/store
key: macOS-cabal-3.6.2.0-ghc-9.2.8-plan-813f23bfbcb4c800c8178d743c3df6e501ec38580a651c180dcd99b0abc9319d
restore-keys: macOS-cabal-3.6.2.0-ghc-9.2.8-
...
Cache restored from key: macOS-cabal-3.6.2.0-ghc-9.2.8-813f23bfbcb4c800c8178d743c3df6e501ec38580a651c180dcd99b0abc9319d
Note that this key is not the primary key, which has an additional
This is the workflow I caught red-handed: https://github.com/andreasabel/hasktorch/actions/runs/6536754694/job/17749144021
actions/cache@v3SHA:704facf57e6136b1bc63b828d79edcd491f0ee84 https://github.com/andreasabel/hasktorch/actions/runs/6536754694/job/17749144021restore-keyhttps://github.com/andreasabel/hasktorch/actions/runs/6536754694/job/17749144021#step:7:4-planbefore the SHA.if: !steps.cache.outputs.cache-hit) is skipped", it's code is https://github.com/andreasabel/hasktorch/actions/runs/6536754694/workflowAccording to the docs,
outputs.cache-hitshould not betrueif the cache was restored with a fallback key.This is stressed here:
cache/README.md
Lines 63 to 65 in 704facf
And again for the
restoreaction:cache/restore/README.md
Lines 15 to 22 in 704facf