mirror of
				https://github.com/Burnett01/rsync-deployments.git
				synced 2025-11-04 09:29:04 +01:00 
			
		
		
		
	improve code-formatting
This commit is contained in:
		
							parent
							
								
									469a77e7aa
								
							
						
					
					
						commit
						ea3f2b7314
					
				
					 1 changed files with 10 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -4,6 +4,14 @@
 | 
			
		|||
source agent-start "$GITHUB_ACTION"
 | 
			
		||||
echo "$INPUT_REMOTE_KEY" | agent-add
 | 
			
		||||
 | 
			
		||||
# Add strict errors and deploy.
 | 
			
		||||
# Add strict errors.
 | 
			
		||||
set -eu
 | 
			
		||||
sh -c "rsync $INPUT_SWITCHES -e 'ssh -o StrictHostKeyChecking=no -p $INPUT_REMOTE_PORT $INPUT_RSH' $GITHUB_WORKSPACE/$INPUT_PATH $INPUT_REMOTE_USER@$INPUT_REMOTE_HOST:$INPUT_REMOTE_PATH"
 | 
			
		||||
 | 
			
		||||
# Variables.
 | 
			
		||||
SWITCHES="$INPUT_SWITCHES"
 | 
			
		||||
RSH="ssh -o StrictHostKeyChecking=no -p $INPUT_REMOTE_PORT $INPUT_RSH"
 | 
			
		||||
LOCAL_PATH="$GITHUB_WORKSPACE/$INPUT_PATH"
 | 
			
		||||
DSN="$INPUT_REMOTE_USER@$INPUT_REMOTE_HOST"
 | 
			
		||||
 | 
			
		||||
# Deploy.
 | 
			
		||||
sh -c "rsync $SWITCHES -e '$RSH' $LOCAL_PATH $DSN:$INPUT_REMOTE_PATH"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue