mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-11-26 02:00:58 -05:00
Avoid warning for cache reservation errors
We have no way of knowing if another build has already cached these artifacts, so CacheReservationError is expected.
This commit is contained in:
parent
d5cd9d86a1
commit
e63ddf9c00
1 changed files with 5 additions and 2 deletions
|
@ -135,10 +135,13 @@ export class GradleUserHomeCache extends AbstractCache {
|
||||||
!(error instanceof Error)
|
!(error instanceof Error)
|
||||||
) {
|
) {
|
||||||
throw error
|
throw error
|
||||||
}
|
} else if (error instanceof cache.ReserveCacheError) {
|
||||||
// TODO : Avoid warning for reserve cache error: this is expected
|
// These are expected if the artifact is already cached
|
||||||
|
this.debug(error.message)
|
||||||
|
} else {
|
||||||
core.warning(error.message)
|
core.warning(error.message)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Write the marker file that will stand in place of the original
|
// Write the marker file that will stand in place of the original
|
||||||
fs.writeFileSync(markerFile, 'cached')
|
fs.writeFileSync(markerFile, 'cached')
|
||||||
|
|
Loading…
Reference in a new issue