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)
| 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. |
| 561 | func (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 |
| 577 | func (c *ActionCache) GetCachePath() string { |