mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-06-08 01:06:12 +02: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:
parent
9cd70b5460
commit
8096e65e0a
2 changed files with 16 additions and 5 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue