wip: needs tests

This commit is contained in:
Louis Seubert 2024-10-20 14:55:16 +02:00
commit 09ef963ca3
Signed by: louis9902
GPG key ID: 4B9DB28F826553BD
3 changed files with 136 additions and 3 deletions

View file

@ -3,7 +3,7 @@ package sdk
import "git.geekeey.de/actions/sdk/cache"
func (c *Action) Cache() *cache.Client {
c.env("ACTIONS_CACHE_URL")
c.env("ACTIONS_RUNTIME_TOKEN")
return cache.New("", "")
token := c.env("ACTIONS_RUNTIME_TOKEN")
url := c.env("ACTIONS_CACHE_URL")
return cache.New(token, url)
}