mirror of
				https://code.forgejo.org/actions/cache.git
				synced 2025-11-04 14:29:12 +00:00 
			
		
		
		
	Merge d722552897 into 640a1c2554
				
					
				
			This commit is contained in:
		
						commit
						1a6a9df2d2
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -165,6 +165,10 @@ steps:
 | 
				
			||||||
    run: /publish.sh
 | 
					    run: /publish.sh
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					> [!IMPORTANT]
 | 
				
			||||||
 | 
					> 
 | 
				
			||||||
 | 
					> The `path` must match on both the centralized job and the target job, otherwise there will be no cache-hit whatsoever. Also take notes of the [restrictions for accessing caches across workflows](https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/caching-dependencies-to-speed-up-workflows#restrictions-for-accessing-a-cache).  
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Failing/Exiting the workflow if cache with exact key is not found
 | 
					### Failing/Exiting the workflow if cache with exact key is not found
 | 
				
			||||||
 | 
					
 | 
				
			||||||
You can use the output of this action to exit the workflow on cache miss. This way you can restrict your workflow to only initiate the build when `cache-hit` occurs, in other words, cache with exact key is found.
 | 
					You can use the output of this action to exit the workflow on cache miss. This way you can restrict your workflow to only initiate the build when `cache-hit` occurs, in other words, cache with exact key is found.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue