mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 07:38:37 +08:00 
			
		
		
		
	Configurable save cache: GHA_CACHE_SAVE=success|always|never
This commit is contained in:
		
							parent
							
								
									4fe9c4bd54
								
							
						
					
					
						commit
						2cc80e8d36
					
				| 
						 | 
					@ -21,7 +21,9 @@ runs:
 | 
				
			||||||
  using: 'node16'
 | 
					  using: 'node16'
 | 
				
			||||||
  main: 'dist/restore/index.js'
 | 
					  main: 'dist/restore/index.js'
 | 
				
			||||||
  post: 'dist/save/index.js'
 | 
					  post: 'dist/save/index.js'
 | 
				
			||||||
  post-if: 'success()'
 | 
					  post-if: |
 | 
				
			||||||
 | 
					    ((env.GHA_CACHE_SAVE == 'always') && (success() || failure())) ||
 | 
				
			||||||
 | 
					    ((env.GHA_CACHE_SAVE != 'never') && success())
 | 
				
			||||||
branding:
 | 
					branding:
 | 
				
			||||||
  icon: 'archive'
 | 
					  icon: 'archive'
 | 
				
			||||||
  color: 'gray-dark'
 | 
					  color: 'gray-dark'
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user