Avoid capturing build-results for cache cleanup

The Gradle build used to perform cache-cleanup will run in the context of init-scripts
provided by the action, including those that collect build-results.
In some circumstances this can lead to unexpected results, such as saving configuration-cache
entries for cache cleanup executions.

With this change, build results will not be captured for cache-cleanup builds.
This commit is contained in:
daz
2025-01-20 15:13:52 -07:00
committed by Daz DeBoer
parent ec1d1bfd5f
commit e4f356955f
3 changed files with 14 additions and 1 deletions

View File

@@ -75,6 +75,7 @@ export class CacheCleaner {
'--no-scan',
'--build-cache',
'-DGITHUB_DEPENDENCY_GRAPH_ENABLED=false',
'-DGRADLE_ACTIONS_SKIP_BUILD_RESULT_CAPTURE=true',
'noop'
]