You've already forked setup-python
							
							
				mirror of
				https://github.com/actions/setup-python.git
				synced 2025-11-04 16:56:40 +07:00 
			
		
		
		
	doc: Add multiple wildcards example to readme
Based on https://www.npmjs.com/package/@actions/glob (the library used for cache file globbing), newline-separating multiple patterns is accepted.
This commit is contained in:
		
							
								
								
									
										15
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								README.md
									
									
									
									
									
								
							@ -320,6 +320,21 @@ steps:
 | 
			
		||||
- run: pipenv install
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
**Using a list of wildcard patterns to cache dependencies**
 | 
			
		||||
```yaml
 | 
			
		||||
steps:
 | 
			
		||||
- uses: actions/checkout@v3
 | 
			
		||||
- uses: actions/setup-python@v4
 | 
			
		||||
  with:
 | 
			
		||||
    python-version: '3.10'
 | 
			
		||||
    cache: 'pip'
 | 
			
		||||
    cache-dependency-path: |
 | 
			
		||||
      **/setup.cfg
 | 
			
		||||
      **/requirements*.txt
 | 
			
		||||
- run: pip install -e . -r subdirectory/requirements-dev.txt
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Environment variables
 | 
			
		||||
 | 
			
		||||
 The `update-environment` flag defaults to `true`.
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user