mirror of
				https://github.com/actions/cache.git
				synced 2025-10-30 22:10:55 +00:00 
			
		
		
		
	Adding wrapper class
This commit is contained in:
		
					parent
					
						
							
								5fe0b944ef
							
						
					
				
			
			
				commit
				
					
						7f45813c72
					
				
			
		
					 4 changed files with 61398 additions and 2 deletions
				
			
		
							
								
								
									
										22
									
								
								src/restore-only.ts
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								src/restore-only.ts
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,22 @@ | |||
| import * as core from "@actions/core"; | ||||
| 
 | ||||
| import { Inputs } from "./constants"; | ||||
| import run from "./restore"; | ||||
| 
 | ||||
| async function runRestoreAction(): Promise<void> { | ||||
|     if (core.getInput(Inputs.SaveOnAnyFailure) != "") { | ||||
|         core.info( | ||||
|             `Input ${Inputs.SaveOnAnyFailure} value is passed in the input, this input will be ignored as you are using restore-only action` | ||||
|         ); | ||||
|     } | ||||
|     if (core.getInput(Inputs.UploadChunkSize) != "") { | ||||
|         core.info( | ||||
|             `Input ${Inputs.UploadChunkSize} value is passed in the input, this input will be ignored as you are using restore-only action` | ||||
|         ); | ||||
|     } | ||||
|     await run(); | ||||
| } | ||||
| 
 | ||||
| runRestoreAction(); | ||||
| 
 | ||||
| export default runRestoreAction; | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue