Skip to content

Commit

Permalink
Fix GHA cache URL in Depot runners
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie committed Nov 12, 2024
1 parent 54ffc06 commit ad140aa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/helpers/gha.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ import "os"
// If the CLI is running inside a Depot GitHub Actions runner, restore the original
// GitHub Actions cache URL so that the remote BuildKit doesn't attempt to use the internal cache.
func FixGitHubActionsCacheEnv() {
original := os.Getenv("GACTIONSCACHE_URL")
original := os.Getenv("UPSTREAM_ACTIONS_CACHE_URL")

if original == "" {
original = os.Getenv("GACTIONSCACHE_URL")
}

if original != "" {
os.Setenv("ACTIONS_CACHE_URL", original)
}
Expand Down

0 comments on commit ad140aa

Please sign in to comment.