MCPcopy Create free account
hub / github.com/github/gh-aw / SetReleasedAt

Method SetReleasedAt

pkg/workflow/action_cache.go:561–574  ·  view source on GitHub ↗

SetReleasedAt stores the release publication date for the given repo and version. If no cache entry exists for the key, a new entry is created.

(repo, version string, t time.Time)

Source from the content-addressed store, hash-verified

559// SetReleasedAt stores the release publication date for the given repo and version.
560// If no cache entry exists for the key, a new entry is created.
561func (c *ActionCache) SetReleasedAt(repo, version string, t time.Time) {
562 key := formatActionCacheKey(repo, version)
563 entry, exists := c.Entries[key]
564 if !exists {
565 entry = ActionCacheEntry{
566 Repo: repo,
567 Version: version,
568 }
569 }
570 entry.ReleasedAt = &t
571 c.Entries[key] = entry
572 c.dirty = true
573 actionCacheLog.Printf("Cached release date for key=%s: %s", key, t.Format(time.RFC3339))
574}
575
576// GetCachePath returns the path to the cache file
577func (c *ActionCache) GetCachePath() string {

Calls 2

formatActionCacheKeyFunction · 0.85
PrintfMethod · 0.45