mirror of
				https://github.com/actions/cache.git
				synced 2025-10-31 03:38:36 +08:00 
			
		
		
		
	Explain which ID to use for cache-hit in yarn's example
				
					
				
			Signed-off-by: Kipras Melnikovas <kipras@kipras.org>
This commit is contained in:
		
							parent
							
								
									82069170eb
								
							
						
					
					
						commit
						59bc1df8df
					
				|  | @ -162,7 +162,7 @@ The yarn cache directory will depend on your operating system and version of `ya | ||||||
|   run: echo "::set-output name=dir::$(yarn cache dir)" |   run: echo "::set-output name=dir::$(yarn cache dir)" | ||||||
| 
 | 
 | ||||||
| - uses: actions/cache@v1 | - uses: actions/cache@v1 | ||||||
|   id: yarn-cache |   id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||||||
|   with: |   with: | ||||||
|     path: ${{ steps.yarn-cache-dir-path.outputs.dir }} |     path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||||||
|     key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} |     key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Kipras Melnikovas
						Kipras Melnikovas