mirror of
				https://github.com/actions/cache.git
				synced 2025-10-31 03:38:36 +08:00 
			
		
		
		
	Update CACHING.md
Co-authored-by: Bishal Prasad <bishal-pdmsft@github.com>
This commit is contained in:
		
							parent
							
								
									46572c6bc7
								
							
						
					
					
						commit
						faa6bb52c7
					
				|  | @ -64,7 +64,7 @@ In case of workflows with matrix running for multiple Operating Systems, the cac | ||||||
| 
 | 
 | ||||||
| ### Limiting cache to only the current workflow/attempt | ### Limiting cache to only the current workflow/attempt | ||||||
| 
 | 
 | ||||||
| Caches scoped to the particular workflow run id or run attempt can be stored and referred by using the run id/attempt | Caches scoped to the particular workflow run id or run attempt can be stored and referred by using the run id/attempt. This is an effective way to have a short lived cache. | ||||||
| 
 | 
 | ||||||
| ```yaml | ```yaml | ||||||
|     key: cache-${{ github.run_id }}-${{ github.run_attempt }} |     key: cache-${{ github.run_id }}-${{ github.run_attempt }} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Sankalp Kotewar
						Sankalp Kotewar