@@ -441,11 +441,12 @@ async function runActionWithWitness(actionDir, witnessOptions) {
441
441
const nodeCmd = 'node' ;
442
442
const nodeArgs = [ entryFile ] ;
443
443
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 ( " " ) ;
447
446
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 } ` ) ;
449
450
450
451
// Set up options for execution
451
452
const execOptions = {
@@ -464,7 +465,7 @@ async function runActionWithWitness(actionDir, witnessOptions) {
464
465
// Execute and capture output
465
466
let output = '' ;
466
467
467
- await exec . exec ( 'sh' , [ '-c' , commandString ] , {
468
+ await exec . exec ( 'sh' , [ '-c' , prefixedCommand ] , {
468
469
...execOptions ,
469
470
listeners : {
470
471
...execOptions . listeners ,
0 commit comments