cache: enable gha cache backend if cache service v2 detected

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2025-02-17 18:13:12 +01:00
parent faa573f484
commit 73f61aa338
No known key found for this signature in database
GPG Key ID: ADE44D8C9D44FBE4

View File

@ -266,5 +266,5 @@ func isActive(pb *controllerapi.CacheOptionsEntry) bool {
if pb.Type != "gha" { if pb.Type != "gha" {
return true return true
} }
return pb.Attrs["token"] != "" && pb.Attrs["url"] != "" return pb.Attrs["token"] != "" && (pb.Attrs["url"] != "" || pb.Attrs["url_v2"] != "")
} }