Skip to content

Commit 79cbe02

Browse files
set ACTIONS_CACHE_SERVICE_V2 (#201)
* cache might stop working without this
1 parent 71d6095 commit 79cbe02

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

actionsdotnetactcompat/act_worker.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,9 @@ func ExecWorker(rqt *protocol.AgentJobRequestMessage, wc actionsrunner.WorkerCon
254254
if resultsServiceUrl, ok := vssConnectionData["ResultsServiceUrl"]; ok && len(resultsServiceUrl) > 0 {
255255
env["ACTIONS_RESULTS_URL"] = resultsServiceUrl
256256
}
257+
if uses_cache_service_v2, ok := rqt.Variables["actions_uses_cache_service_v2"]; ok && strings.EqualFold(uses_cache_service_v2.Value, "True") {
258+
env["ACTIONS_CACHE_SERVICE_V2"] = "True" // bool.TrueString
259+
}
257260

258261
defaults, err := ConvertDefaults(rqt.Defaults)
259262
if err != nil {

0 commit comments

Comments
 (0)