Skip to content

Commit

Permalink
Disable remote cache push for forked repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
clayburn committed Jun 14, 2024
1 parent a87001c commit 1f55b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ buildCache {
password = System.getenv("GRADLE_ENTERPRISE_CACHE_PASSWORD")
}
isEnabled = !System.getenv("GRADLE_ENTERPRISE_CACHE_USERNAME").isNullOrBlank()
isPush = isCi
isPush = isCi && !System.getenv("GRADLE_ENTERPRISE_CACHE_USERNAME").isNullOrBlank()
}
}

Expand Down

0 comments on commit 1f55b83

Please sign in to comment.