Closed dwhieb closed 3 years ago
I don’t remember if we tested whether this worked, but based on some GitHub docs, the hfst-optimized-lookup workflow you helped me with does:
if: steps.cache.outputs.cache-hit != 'true'
That said, weirdly, today the daily scheduled build failed claiming a library that should have been installed from the cache couldn’t be found. So I removed the caching step and the build passed.
Thanks @andrewdotn! That conditional looks useful. I think I'm missing a key
parameter in the workflow file, so I'll try that too.
hashFiles
returns an empty string when it can't find the file, which is probably what's happening here. See https://github.com/actions/cache/issues/536.
In this case, the workflow file is looking for package-lock.json
, which doesn't exist in the repo. It should look for yarn.lock
instead.
Fixed by 8768c447adb82b8643c409d4159d62bc279f1fba.
The step for caching Node modules isn't working during deployment workflows:
https://github.com/UAlbertaALTLab/korp-frontend/runs/1981096876?check_suite_focus=true