mirror of
				https://code.forgejo.org/actions/cache.git
				synced 2025-10-31 04:32:28 +00:00 
			
		
		
		
	
						commit
						13aacd865c
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -26,6 +26,10 @@ inputs: | |||
|     description: 'Check if a cache entry exists for the given input(s) (key, restore-keys) without downloading the cache' | ||||
|     default: 'false' | ||||
|     required: false | ||||
|   save-always: | ||||
|     description: 'Run the post step to save the cache even if another step before fails' | ||||
|     default: 'false' | ||||
|     required: false     | ||||
| outputs: | ||||
|   cache-hit: | ||||
|     description: 'A boolean value to indicate an exact match was found for the primary key' | ||||
|  | @ -33,7 +37,7 @@ runs: | |||
|   using: 'node20' | ||||
|   main: 'dist/restore/index.js' | ||||
|   post: 'dist/save/index.js' | ||||
|   post-if: success() | ||||
|   post-if: "success() || github.event.inputs.save-always" | ||||
| branding: | ||||
|   icon: 'archive' | ||||
|   color: 'gray-dark' | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue