mirror of
https://github.com/gradle/actions.git
synced 2025-11-26 17:09:10 +08:00
Better error reporting when file deletion fails
- Include file name in all logging - Log inital attempts at debug to avoid noise - Include output of 'jps -lm' when final attempt fails
This commit is contained in:
@@ -13,7 +13,7 @@ const GRADLE_USER_HOME = 'GRADLE_USER_HOME'
|
||||
const CACHE_LISTENER = 'CACHE_LISTENER'
|
||||
const JOB_SUMMARY_ENABLED_PARAMETER = 'generate-job-summary'
|
||||
|
||||
function generateJobSummary(): boolean {
|
||||
function shouldGenerateJobSummary(): boolean {
|
||||
return core.getBooleanInput(JOB_SUMMARY_ENABLED_PARAMETER)
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ export async function complete(): Promise<void> {
|
||||
const gradleUserHome = core.getState(GRADLE_USER_HOME)
|
||||
await caches.save(gradleUserHome, cacheListener)
|
||||
|
||||
if (generateJobSummary()) {
|
||||
if (shouldGenerateJobSummary()) {
|
||||
writeJobSummary(buildResults, cacheListener)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user