mirror of
				https://github.com/appleboy/scp-action.git
				synced 2025-10-23 08:55:54 +08:00 
			
		
		
		
	docs: use with instead of env
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
		
							
								
								
									
										18
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								README.md
									
									
									
									
									
								
							@@ -83,12 +83,11 @@ Copy file via ssh key
 | 
				
			|||||||
```yaml
 | 
					```yaml
 | 
				
			||||||
- name: copy file via ssh key
 | 
					- name: copy file via ssh key
 | 
				
			||||||
  uses: appleboy/scp-action@master
 | 
					  uses: appleboy/scp-action@master
 | 
				
			||||||
  env:
 | 
					 | 
				
			||||||
    HOST: ${{ secrets.HOST }}
 | 
					 | 
				
			||||||
    USERNAME: ${{ secrets.USERNAME }}
 | 
					 | 
				
			||||||
    PORT: ${{ secrets.PORT }}
 | 
					 | 
				
			||||||
    KEY: ${{ secrets.KEY }}
 | 
					 | 
				
			||||||
  with:
 | 
					  with:
 | 
				
			||||||
 | 
					    host: ${{ secrets.HOST }}
 | 
				
			||||||
 | 
					    username: ${{ secrets.USERNAME }}
 | 
				
			||||||
 | 
					    port: ${{ secrets.PORT }}
 | 
				
			||||||
 | 
					    key: ${{ secrets.KEY }}
 | 
				
			||||||
    source: "tests/a.txt,tests/b.txt"
 | 
					    source: "tests/a.txt,tests/b.txt"
 | 
				
			||||||
    target: "test"
 | 
					    target: "test"
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
@@ -98,12 +97,11 @@ Example configuration for ignore list:
 | 
				
			|||||||
```yaml
 | 
					```yaml
 | 
				
			||||||
- name: copy file via ssh key
 | 
					- name: copy file via ssh key
 | 
				
			||||||
  uses: appleboy/scp-action@master
 | 
					  uses: appleboy/scp-action@master
 | 
				
			||||||
  env:
 | 
					 | 
				
			||||||
    HOST: ${{ secrets.HOST }}
 | 
					 | 
				
			||||||
    USERNAME: ${{ secrets.USERNAME }}
 | 
					 | 
				
			||||||
    PORT: ${{ secrets.PORT }}
 | 
					 | 
				
			||||||
    KEY: ${{ secrets.KEY }}
 | 
					 | 
				
			||||||
  with:
 | 
					  with:
 | 
				
			||||||
 | 
					    host: ${{ secrets.HOST }}
 | 
				
			||||||
 | 
					    username: ${{ secrets.USERNAME }}
 | 
				
			||||||
 | 
					    port: ${{ secrets.PORT }}
 | 
				
			||||||
 | 
					    key: ${{ secrets.KEY }}
 | 
				
			||||||
    source: "tests/*.txt,!tests/a.txt"
 | 
					    source: "tests/*.txt,!tests/a.txt"
 | 
				
			||||||
    target: "test"
 | 
					    target: "test"
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user