feat: make use new action cache the new default for downloading actions (#12)

* remove legacy action caching
* migrate tests
* clear old legacy action cache when run
This commit is contained in:
ChristopherHX
2025-01-26 13:19:25 +01:00
committed by GitHub
parent 3d684447a5
commit 5b4393f840
11 changed files with 152 additions and 282 deletions

View File

@@ -627,6 +627,15 @@ func (rc *RunContext) ActionCacheDir() string {
return filepath.Join(xdgCache, "act")
}
func (rc *RunContext) getActionCache() ActionCache {
if rc.Config.ActionCache == nil {
rc.Config.ActionCache = &GoGitActionCache{
Path: rc.ActionCacheDir(),
}
}
return rc.Config.ActionCache
}
// Interpolate outputs after a job is done
func (rc *RunContext) interpolateOutputs() common.Executor {
return func(ctx context.Context) error {