Skip to content

Commit 9d3212b

Browse files
Merge pull request #302 from depot/fix-gha-cache
2 parents 54ffc06 + ad140aa commit 9d3212b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pkg/helpers/gha.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ import "os"
55
// If the CLI is running inside a Depot GitHub Actions runner, restore the original
66
// GitHub Actions cache URL so that the remote BuildKit doesn't attempt to use the internal cache.
77
func FixGitHubActionsCacheEnv() {
8-
original := os.Getenv("GACTIONSCACHE_URL")
8+
original := os.Getenv("UPSTREAM_ACTIONS_CACHE_URL")
9+
10+
if original == "" {
11+
original = os.Getenv("GACTIONSCACHE_URL")
12+
}
13+
914
if original != "" {
1015
os.Setenv("ACTIONS_CACHE_URL", original)
1116
}

0 commit comments

Comments
 (0)