docs: add README configuration for custom file exclusions
- Add configuration example for excluding custom files in README.md Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
This commit is contained in:
		
							
								
								
									
										14
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								README.md
									
									
									
									
									
								
							| @@ -189,6 +189,20 @@ Example configuration for multiple servers: | |||||||
|     target: "test" |     target: "test" | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
|  | Example configuration for exclude custom files: | ||||||
|  |  | ||||||
|  | ```yaml | ||||||
|  |   uses: appleboy/scp-action@master | ||||||
|  |   with: | ||||||
|  |     host: "example.com" | ||||||
|  |     username: foo | ||||||
|  |     password: bar | ||||||
|  |     port: 22 | ||||||
|  | -   source: "tests/*.txt" | ||||||
|  | +   source: "tests/*.txt,!tests/a.txt,!tests/b.txt" | ||||||
|  |     target: "test" | ||||||
|  | ``` | ||||||
|  |  | ||||||
| Remove the specified number of leading path elements: | Remove the specified number of leading path elements: | ||||||
|  |  | ||||||
| ```yaml | ```yaml | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Bo-Yi.Wu
					Bo-Yi.Wu