mirror of
				https://github.com/actions/setup-go.git
				synced 2025-10-31 16:23:42 +00:00 
			
		
		
		
	Merge 65d092b907f29b50665acd97b4584c9ac9ad7ffb into c0137caad775660c0844396c52da96e560aba63d
This commit is contained in:
		
						commit
						4dfb619742
					
				| @ -15,6 +15,9 @@ inputs: | ||||
|   cache: | ||||
|     description: Used to specify whether caching is needed. Set to true, if you'd like to enable caching. | ||||
|     default: true | ||||
|   restore-only: | ||||
|     description: Do not save the cache. Only applies if cache is enabled. | ||||
|     default: false | ||||
|   cache-dependency-path: | ||||
|     description: 'Used to specify the path to a dependency file - go.sum' | ||||
|   architecture: | ||||
|  | ||||
| @ -18,7 +18,8 @@ process.on('uncaughtException', e => { | ||||
| export async function run(earlyExit?: boolean) { | ||||
|   try { | ||||
|     const cacheInput = core.getBooleanInput('cache'); | ||||
|     if (cacheInput) { | ||||
|     const restoreOnly = core.getBooleanInput('restoreOnly'); | ||||
|     if (cacheInput && !restoreOnly) { | ||||
|       await cachePackages(); | ||||
| 
 | ||||
|       if (earlyExit) { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user