mirror of
				https://github.com/appleboy/ssh-action.git
				synced 2025-10-31 12:43:52 +00:00 
			
		
		
		
	ci: add workflow step for multi-command SSH testing (#386)
- Add a workflow step to run multiple SSH commands for testing, including creating a directory, writing a file, listing files, and displaying file contents Signed-off-by: appleboy <appleboy.tw@gmail.com>
This commit is contained in:
		
							parent
							
								
									8745f9583c
								
							
						
					
					
						commit
						ffd1eec364
					
				
							
								
								
									
										15
									
								
								.github/workflows/main.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										15
									
								
								.github/workflows/main.yml
									
									
									
									
										vendored
									
									
								
							| @ -51,6 +51,21 @@ jobs: | ||||
|           port: 2222 | ||||
|           script_path: testdata/test.sh | ||||
| 
 | ||||
|       # https://github.com/appleboy/ssh-action/issues/377 | ||||
|       - name: multiple commands | ||||
|         uses: ./ | ||||
|         with: | ||||
|           host: ${{ env.REMOTE_HOST }} | ||||
|           username: linuxserver.io | ||||
|           password: password | ||||
|           port: 2222 | ||||
|           script: | | ||||
|             mkdir -p /tmp/test | ||||
|             echo "hello world" > /tmp/test/hello.txt | ||||
|             cd /tmp/test | ||||
|             ls -al | ||||
|             cat /tmp/test/hello.txt | ||||
| 
 | ||||
|   check-ssh-key: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user