Skip to content

Commit

Permalink
Check Access Key Presence to avoid Build Cache errors on PR builds wh…
Browse files Browse the repository at this point in the history
…ere Key is not present
  • Loading branch information
runningcode committed Nov 27, 2023
1 parent 1d7e5d2 commit 28feba0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ buildCache {

remote(gradleEnterprise.buildCache) {
isEnabled = true
isPush = isCI
val accessKey = System.getenv("GRADLE_ENTERPRISE_ACCESS_KEY")
isPush = isCI && !accessKey.isNullOrEmpty()
}
}

Expand Down

0 comments on commit 28feba0

Please sign in to comment.