From b443e37a02fb6baf22f6321c8e203f55f175f55d Mon Sep 17 00:00:00 2001 From: Blake Friedman Date: Tue, 16 Jul 2024 04:20:37 -0700 Subject: [PATCH] disable gradle home cleanup (#45459) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/45459 Seeing failures on main with GHA for gradle builds, in the Post Setup gradle step: ``` Could not get unknown property 'cleanupTime' for object of type org.gradle.api.internal.cache.DefaultCacheConfigurations. ``` This is a speculative change to get CI back to stable. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D59802517 fbshipit-source-id: c7b5259397fddef9420570043263e92f21718934 --- .github/actions/setup-gradle/action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup-gradle/action.yml b/.github/actions/setup-gradle/action.yml index ed94f9c9ed6..fbaf72d395d 100644 --- a/.github/actions/setup-gradle/action.yml +++ b/.github/actions/setup-gradle/action.yml @@ -15,4 +15,5 @@ runs: cache-read-only: ${{ (github.ref != 'refs/heads/main' && !contains(github.ref, '-stable')) || inputs.cache-read-only == 'true' }} # Similarly, for those jobs we want to start with a clean cache so it doesn't grow without limits (this is the negation of the previous condition). cache-write-only: ${{ (github.ref == 'refs/heads/main' || contains(github.ref, '-stable')) && inputs.cache-read-only != 'true' }} - gradle-home-cache-cleanup: true + # Temporarily disabling to try resolve a cache cleanup failure + # gradle-home-cache-cleanup: true