mirror of
				https://github.com/easingthemes/ssh-deploy.git
				synced 2025-10-30 23:30:09 +08:00 
			
		
		
		
	Add ssh script execution option
This commit is contained in:
		
							parent
							
								
									40f855a08b
								
							
						
					
					
						commit
						28bda61b75
					
				
							
								
								
									
										7
									
								
								.github/workflows/e2e.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.github/workflows/e2e.yml
									
									
									
									
										vendored
									
									
								
							| @ -55,8 +55,8 @@ jobs: | ||||
|           cat index.html | ||||
| 
 | ||||
|       - name: e2e Test published ssh-deploy action | ||||
|         uses: easingthemes/ssh-deploy@main | ||||
|         env: | ||||
|         uses: easingthemes/ssh-deploy@v3.1.0 | ||||
|         with: | ||||
|           # SSH_PRIVATE_KEY: $EXAMPLE_SSH_PRIVATE_KEY | ||||
|           # REMOTE_HOST: $EXAMPLE_REMOTE_HOST1 | ||||
|           REMOTE_USER: ${{ env.TEST_USER }} | ||||
| @ -64,3 +64,6 @@ jobs: | ||||
|           SOURCE: "test_project/" | ||||
|           TARGET: "/var/www/html/" | ||||
|           EXCLUDE: "/dist/, /node_modules/" | ||||
|           SCRIPT: | | ||||
|             whoami | ||||
|             ls -al | ||||
|  | ||||
| @ -31,6 +31,10 @@ inputs: | ||||
|     description: "An array of folder to exclude" | ||||
|     required: false | ||||
|     default: "" | ||||
|   SCRIPT: | ||||
|     description: "Script to run on host machine" | ||||
|     required: false | ||||
|     default: "ls" | ||||
| outputs: | ||||
|   status: | ||||
|     description: "Status" | ||||
|  | ||||
							
								
								
									
										0
									
								
								src/remoteCmd.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								src/remoteCmd.js
									
									
									
									
									
										Normal file
									
								
							| @ -5,7 +5,7 @@ const validateRsync = (callback = () => {}) => { | ||||
|   const rsyncCli = commandExists("rsync"); | ||||
|   if (rsyncCli) { | ||||
|     console.log('⚠️ [CLI] Rsync exists'); | ||||
|     const rsyncVersion = execSync("rsync --version", { stdio: 'inherit' }); | ||||
|     execSync("rsync --version", { stdio: 'inherit' }); | ||||
|     return callback(); | ||||
|   } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Dragan Filipovic
						Dragan Filipovic