mirror of
				https://github.com/actions/cache.git
				synced 2025-10-31 18:34:19 +08:00 
			
		
		
		
	Changed logs to warnings
This commit is contained in:
		
							parent
							
								
									7f45813c72
								
							
						
					
					
						commit
						921c58ee44
					
				
							
								
								
									
										4
									
								
								dist/restore-only/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								dist/restore-only/index.js
									
									
									
									
										vendored
									
									
								
							| @ -36762,10 +36762,10 @@ const restore_1 = __importDefault(__webpack_require__(778)); | |||||||
| function runRestoreAction() { | function runRestoreAction() { | ||||||
|     return __awaiter(this, void 0, void 0, function* () { |     return __awaiter(this, void 0, void 0, function* () { | ||||||
|         if (core.getInput(constants_1.Inputs.SaveOnAnyFailure) != "") { |         if (core.getInput(constants_1.Inputs.SaveOnAnyFailure) != "") { | ||||||
|             core.info(`Input ${constants_1.Inputs.SaveOnAnyFailure} value is passed in the input, this input will be ignored as you are using restore-only action`); |             core.warning(`${constants_1.Inputs.SaveOnAnyFailure} value is passed in the input, this input is invalid for the restore-only action and hence will be ignored`); | ||||||
|         } |         } | ||||||
|         if (core.getInput(constants_1.Inputs.UploadChunkSize) != "") { |         if (core.getInput(constants_1.Inputs.UploadChunkSize) != "") { | ||||||
|             core.info(`Input ${constants_1.Inputs.UploadChunkSize} value is passed in the input, this input will be ignored as you are using restore-only action`); |             core.warning(`${constants_1.Inputs.UploadChunkSize} value is passed in the input, this input is invalid for the restore-only action and hence will be ignored`); | ||||||
|         } |         } | ||||||
|         yield (0, restore_1.default)(); |         yield (0, restore_1.default)(); | ||||||
|     }); |     }); | ||||||
|  | |||||||
| @ -5,13 +5,13 @@ import run from "./restore"; | |||||||
| 
 | 
 | ||||||
| async function runRestoreAction(): Promise<void> { | async function runRestoreAction(): Promise<void> { | ||||||
|     if (core.getInput(Inputs.SaveOnAnyFailure) != "") { |     if (core.getInput(Inputs.SaveOnAnyFailure) != "") { | ||||||
|         core.info( |         core.warning( | ||||||
|             `Input ${Inputs.SaveOnAnyFailure} value is passed in the input, this input will be ignored as you are using restore-only action` |             `${Inputs.SaveOnAnyFailure} value is passed in the input, this input is invalid for the restore-only action and hence will be ignored` | ||||||
|         ); |         ); | ||||||
|     } |     } | ||||||
|     if (core.getInput(Inputs.UploadChunkSize) != "") { |     if (core.getInput(Inputs.UploadChunkSize) != "") { | ||||||
|         core.info( |         core.warning( | ||||||
|             `Input ${Inputs.UploadChunkSize} value is passed in the input, this input will be ignored as you are using restore-only action` |             `${Inputs.UploadChunkSize} value is passed in the input, this input is invalid for the restore-only action and hence will be ignored` | ||||||
|         ); |         ); | ||||||
|     } |     } | ||||||
|     await run(); |     await run(); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Sankalp Kotewar
						Sankalp Kotewar