@@ -545,13 +545,13 @@ function run() {
545545 try {
546546 // Required inputs
547547 const token = core . getInput ( 'token' ) ;
548- const workflowReference = core . getInput ( 'workflow' ) ;
548+ const workflowName = core . getInput ( 'workflow' ) ;
549549 // Optional inputs, with defaults
550550 const ref = core . getInput ( 'ref' ) || github . context . ref ;
551551 const [ owner , repo ] = core . getInput ( 'repo' )
552552 ? core . getInput ( 'repo' ) . split ( '/' )
553553 : [ github . context . repo . owner , github . context . repo . repo ] ;
554- // Decode inputs, these MUST be a valid JSON string
554+ // Decode inputs, this MUST be a valid JSON string
555555 let inputs = { } ;
556556 const inputsJson = core . getInput ( 'inputs' ) ;
557557 if ( inputsJson ) {
@@ -561,6 +561,10 @@ function run() {
561561 const octokit = github . getOctokit ( token ) ;
562562 // List workflows via API
563563 const workflows = yield octokit . paginate ( octokit . actions . listRepoWorkflows . endpoint . merge ( { owner, repo, ref, inputs } ) ) ;
564+ // Debug response if ACTIONS_STEP_DEBUG is enabled
565+ core . debug ( '### START List Workflows response data' ) ;
566+ core . debug ( JSON . stringify ( workflows , null , 3 ) ) ;
567+ core . debug ( '### END: List Workflows response data' ) ;
564568 // Locate workflow by name as we need it's id
565569 const workflowFind = workflows . find ( ( workflow ) => workflow . name === workflowName ) ;
566570 if ( ! workflowFind )
0 commit comments