mirror of
				https://gitea.com/actions/cache.git
				synced 2025-11-02 07:47:08 +00:00 
			
		
		
		
	formatting and error
This commit is contained in:
		@@ -34,13 +34,13 @@ async function run(): Promise<void> {
 | 
			
		||||
            primaryKey,
 | 
			
		||||
            restoreKeys
 | 
			
		||||
        );
 | 
			
		||||
        
 | 
			
		||||
 | 
			
		||||
        if (!cacheKey) {
 | 
			
		||||
            core.info(
 | 
			
		||||
                `Cache not found for input keys: ${[
 | 
			
		||||
                    primaryKey,
 | 
			
		||||
                    ...restoreKeys
 | 
			
		||||
                 ].join(", ")}`
 | 
			
		||||
                ].join(", ")}`
 | 
			
		||||
            );
 | 
			
		||||
 | 
			
		||||
            return;
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										10
									
								
								src/save.ts
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								src/save.ts
									
									
									
									
									
								
							@@ -44,13 +44,13 @@ async function run(): Promise<void> {
 | 
			
		||||
            required: true
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
        const cacheId =  await cache.saveCache(cachePaths, primaryKey, {
 | 
			
		||||
                                    uploadChunkSize: utils.getInputAsInt(Inputs.UploadChunkSize)
 | 
			
		||||
                                });
 | 
			
		||||
        if (cacheId == -1 ) {
 | 
			
		||||
        const cacheId = await cache.saveCache(cachePaths, primaryKey, {
 | 
			
		||||
            uploadChunkSize: utils.getInputAsInt(Inputs.UploadChunkSize)
 | 
			
		||||
        });
 | 
			
		||||
        if (cacheId == -1) {
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
       
 | 
			
		||||
 | 
			
		||||
        core.info(`Cache saved with key: ${primaryKey}`);
 | 
			
		||||
    } catch (error: unknown) {
 | 
			
		||||
        utils.logWarning((error as Error).message);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user