mirror of
				https://github.com/actions-rs/cargo.git
				synced 2025-11-03 22:31:58 +02:00 
			
		
		
		
	Passing command input to the cargo invocation
This commit is contained in:
		
							parent
							
								
									7562f78615
								
							
						
					
					
						commit
						d73b4029fd
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -30,12 +30,13 @@ async function run() {
 | 
			
		|||
        program = 'cargo';
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    let args: string[] = [];
 | 
			
		||||
    let args: string[] = [actionInput.command];
 | 
			
		||||
    if (actionInput.toolchain) {
 | 
			
		||||
        args.push(`+${actionInput.toolchain}`);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    args = args.concat(actionInput.args);
 | 
			
		||||
    console.log(program, args);
 | 
			
		||||
 | 
			
		||||
    try {
 | 
			
		||||
        await exec.exec(program, args);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue