|  |  |  | @ -36,9 +36,9 @@ output: | 
		
	
		
			
				|  |  |  |  | whoami | 
		
	
		
			
				|  |  |  |  | ======END====== | 
		
	
		
			
				|  |  |  |  | out: *** | 
		
	
		
			
				|  |  |  |  | ========================================== | 
		
	
		
			
				|  |  |  |  | Successfully executed commands to all host. | 
		
	
		
			
				|  |  |  |  | ========================================== | 
		
	
		
			
				|  |  |  |  | ============================================== | 
		
	
		
			
				|  |  |  |  | ✅ Successfully executed commands to all host. | 
		
	
		
			
				|  |  |  |  | ============================================== | 
		
	
		
			
				|  |  |  |  | ``` | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | ## Input variables | 
		
	
	
		
			
				
					|  |  |  | @ -106,6 +106,7 @@ Multiple Commands | 
		
	
		
			
				|  |  |  |  | Multiple Hosts | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | ```diff | 
		
	
		
			
				|  |  |  |  |   - name: multiple host | 
		
	
		
			
				|  |  |  |  |     uses: appleboy/ssh-action@master | 
		
	
		
			
				|  |  |  |  |     with: | 
		
	
		
			
				|  |  |  |  | -     host: "foo.com" | 
		
	
	
		
			
				
					|  |  |  | @ -121,6 +122,7 @@ Multiple Hosts | 
		
	
		
			
				|  |  |  |  | Pass environment variable to shell script | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | ```diff | 
		
	
		
			
				|  |  |  |  |   - name: pass environment | 
		
	
		
			
				|  |  |  |  |     uses: appleboy/ssh-action@master | 
		
	
		
			
				|  |  |  |  | +   env: | 
		
	
		
			
				|  |  |  |  | +     FOO: "BAR" | 
		
	
	
		
			
				
					|  |  |  | @ -137,14 +139,29 @@ Pass environment variable to shell script | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | Stop script after first failure. ex: missing `abc` folder | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | ```yaml | 
		
	
		
			
				|  |  |  |  | - name: stop script if command error | 
		
	
		
			
				|  |  |  |  | ```diff | 
		
	
		
			
				|  |  |  |  |   - name: stop script if command error | 
		
	
		
			
				|  |  |  |  |     uses: appleboy/ssh-action@master | 
		
	
		
			
				|  |  |  |  |     with: | 
		
	
		
			
				|  |  |  |  |       host: ${{ secrets.HOST }} | 
		
	
		
			
				|  |  |  |  |       username: ${{ secrets.USERNAME }} | 
		
	
		
			
				|  |  |  |  |       key: ${{ secrets.KEY }} | 
		
	
		
			
				|  |  |  |  |       port: ${{ secrets.PORT }} | 
		
	
		
			
				|  |  |  |  |     script_stop: true | 
		
	
		
			
				|  |  |  |  |     script: "mkdir abc/def,ls -al" | 
		
	
		
			
				|  |  |  |  | +     script_stop: true | 
		
	
		
			
				|  |  |  |  |       script: | | 
		
	
		
			
				|  |  |  |  |         mkdir abc/def | 
		
	
		
			
				|  |  |  |  |         ls -al | 
		
	
		
			
				|  |  |  |  | ``` | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | output: | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | ```sh | 
		
	
		
			
				|  |  |  |  | ======CMD====== | 
		
	
		
			
				|  |  |  |  | mkdir abc/def | 
		
	
		
			
				|  |  |  |  | ls -al | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | ======END====== | 
		
	
		
			
				|  |  |  |  | 2019/11/21 01:16:21 Process exited with status 1 | 
		
	
		
			
				|  |  |  |  | err: mkdir: cannot create directory ‘abc/def’: No such file or directory | 
		
	
		
			
				|  |  |  |  | ##[error]Docker run failed with exit code 1 | 
		
	
		
			
				|  |  |  |  | ``` | 
		
	
	
		
			
				
					|  |  |  | 
 |