Due to an oversight in actions/toolkit, the CACHE_PATH was modified after running cache.restoreCache function. As a result, an incorrect version was generated during cache upload, leading to cache missing.
This PR independently passes the CACHE_PATH to avoid issues caused by shallow copying.
Due to an oversight in actions/toolkit, the
CACHE_PATH
was modified after runningcache.restoreCache
function. As a result, an incorrect version was generated during cache upload, leading to cache missing.This PR independently passes the
CACHE_PATH
to avoid issues caused by shallow copying.Fix issue:https://github.com/flatpak/flatpak-github-actions/issues/142
Refer to : https://github.com/actions/toolkit/pull/1378#issuecomment-1478388929