mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 13:29:10 +08:00 
			
		
		
		
	Update dependencies with older minimist version
This commit is contained in:
		@@ -52,7 +52,7 @@ async function run(): Promise<void> {
 | 
			
		||||
            utils.setCacheHitOutput(isExactKeyMatch);
 | 
			
		||||
 | 
			
		||||
            core.info(`Cache restored from key: ${cacheKey}`);
 | 
			
		||||
        } catch (error) {
 | 
			
		||||
        } catch (error: any) {
 | 
			
		||||
            if (error.name === cache.ValidationError.name) {
 | 
			
		||||
                throw error;
 | 
			
		||||
            } else {
 | 
			
		||||
@@ -60,7 +60,7 @@ async function run(): Promise<void> {
 | 
			
		||||
                utils.setCacheHitOutput(false);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    } catch (error) {
 | 
			
		||||
    } catch (error: any) {
 | 
			
		||||
        core.setFailed(error.message);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -49,7 +49,7 @@ async function run(): Promise<void> {
 | 
			
		||||
                uploadChunkSize: utils.getInputAsInt(Inputs.UploadChunkSize)
 | 
			
		||||
            });
 | 
			
		||||
            core.info(`Cache saved with key: ${primaryKey}`);
 | 
			
		||||
        } catch (error) {
 | 
			
		||||
        } catch (error: any) {
 | 
			
		||||
            if (error.name === cache.ValidationError.name) {
 | 
			
		||||
                throw error;
 | 
			
		||||
            } else if (error.name === cache.ReserveCacheError.name) {
 | 
			
		||||
@@ -58,7 +58,7 @@ async function run(): Promise<void> {
 | 
			
		||||
                utils.logWarning(error.message);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    } catch (error) {
 | 
			
		||||
    } catch (error: any) {
 | 
			
		||||
        utils.logWarning(error.message);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user