mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 15:14:00 +00:00 
			
		
		
		
	Add name for Maven example
This commit is contained in:
		
							parent
							
								
									b8204782bb
								
							
						
					
					
						commit
						4b1a125f2b
					
				@ -120,8 +120,8 @@ steps:
 | 
				
			|||||||
We cache the elements of the Cabal store separately, as the entirety of `~/.cabal` can grow very large for projects with many dependencies.
 | 
					We cache the elements of the Cabal store separately, as the entirety of `~/.cabal` can grow very large for projects with many dependencies.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```yaml
 | 
					```yaml
 | 
				
			||||||
- uses: actions/cache@v2
 | 
					- name: Cache ~/.cabal/packages, ~/.cabal/store and dist-newstyle
 | 
				
			||||||
  name: Cache ~/.cabal/packages, ~/.cabal/store and dist-newstyle
 | 
					  uses: actions/cache@v2
 | 
				
			||||||
  with:
 | 
					  with:
 | 
				
			||||||
    path: |
 | 
					    path: |
 | 
				
			||||||
      ~/.cabal/packages
 | 
					      ~/.cabal/packages
 | 
				
			||||||
@ -144,7 +144,8 @@ We cache the elements of the Cabal store separately, as the entirety of `~/.caba
 | 
				
			|||||||
## Java - Maven
 | 
					## Java - Maven
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```yaml
 | 
					```yaml
 | 
				
			||||||
- uses: actions/cache@v2
 | 
					- name: Cache local Maven repository
 | 
				
			||||||
 | 
					  uses: actions/cache@v2
 | 
				
			||||||
  with:
 | 
					  with:
 | 
				
			||||||
    path: ~/.m2/repository
 | 
					    path: ~/.m2/repository
 | 
				
			||||||
    key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
 | 
					    key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user