mirror of
				https://github.com/appleboy/scp-action.git
				synced 2025-10-31 16:03:47 +00:00 
			
		
		
		
	docs: improve documentation and testing configurations (#193)
- Add example for using environment variables with `scp-action` in README.md Signed-off-by: appleboy <appleboy.tw@gmail.com>
This commit is contained in:
		
							parent
							
								
									b03d7257ae
								
							
						
					
					
						commit
						4f2c27bbc2
					
				
							
								
								
									
										14
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								README.md
									
									
									
									
									
								
							| @ -148,6 +148,20 @@ Copy file via a SSH password: | |||||||
|     target: your_server_target_folder_path |     target: your_server_target_folder_path | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
|  | Using the environment variables | ||||||
|  | 
 | ||||||
|  | ```yaml | ||||||
|  | - name: copy file via ssh password | ||||||
|  |   uses: appleboy/scp-action@v0.1.7 | ||||||
|  |   with: | ||||||
|  |     host: ${{ env.HOST }} | ||||||
|  |     username: ${{ env.USERNAME }} | ||||||
|  |     password: ${{ secrets.PASSWORD }} | ||||||
|  |     port: ${{ env.PORT }} | ||||||
|  |     source: "tests/a.txt,tests/b.txt" | ||||||
|  |     target: ${{ env.TARGET_PATH }} | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
| Copy file via a SSH key: | Copy file via a SSH key: | ||||||
| 
 | 
 | ||||||
| ```yaml | ```yaml | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user