mirror of
https://gitea.com/gitea/act_runner.git
synced 2026-03-20 03:46:09 +08:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user