@@ -441,11 +441,12 @@ async function runActionWithWitness(actionDir, witnessOptions) {
441441 const nodeCmd = 'node' ;
442442 const nodeArgs = [ entryFile ] ;
443443
444- // Execute the command and capture its output
445- const runArray = [ "witness" , ...cmd , "--" , nodeCmd , ...nodeArgs ] ,
446- commandString = runArray . join ( " " ) ;
444+ // Build the base command string from witness arguments
445+ const baseCommand = [ "witness" , ...cmd , "--" , nodeCmd , ...nodeArgs ] . join ( " " ) ;
447446
448- core . info ( `Running witness command: ${ commandString } ` ) ;
447+ // For testing, explicitly prepend the environment assignment for INPUT_WHO_TO_GREET
448+ const prefixedCommand = `INPUT_WHO_TO_GREET=${ envVars [ "INPUT_WHO_TO_GREET" ] } ${ baseCommand } ` ;
449+ core . info ( `Running witness command: ${ prefixedCommand } ` ) ;
449450
450451 // Set up options for execution
451452 const execOptions = {
@@ -464,7 +465,7 @@ async function runActionWithWitness(actionDir, witnessOptions) {
464465 // Execute and capture output
465466 let output = '' ;
466467
467- await exec . exec ( 'sh' , [ '-c' , commandString ] , {
468+ await exec . exec ( 'sh' , [ '-c' , prefixedCommand ] , {
468469 ...execOptions ,
469470 listeners : {
470471 ...execOptions . listeners ,
0 commit comments