mirror of
				https://github.com/gradle/gradle-build-action.git
				synced 2025-11-04 18:08:57 +08: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:
		@@ -135,9 +135,12 @@ export class GradleUserHomeCache extends AbstractCache {
 | 
				
			|||||||
                    !(error instanceof Error)
 | 
					                    !(error instanceof Error)
 | 
				
			||||||
                ) {
 | 
					                ) {
 | 
				
			||||||
                    throw error
 | 
					                    throw error
 | 
				
			||||||
 | 
					                } else if (error instanceof cache.ReserveCacheError) {
 | 
				
			||||||
 | 
					                    // These are expected if the artifact is already cached
 | 
				
			||||||
 | 
					                    this.debug(error.message)
 | 
				
			||||||
 | 
					                } else {
 | 
				
			||||||
 | 
					                    core.warning(error.message)
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                // TODO : Avoid warning for reserve cache error: this is expected
 | 
					 | 
				
			||||||
                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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user