File tree Expand file tree Collapse file tree 1 file changed +18
-6
lines changed
Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -518,12 +518,24 @@ const main = defineCommand({
518518 ) ;
519519
520520 const debug = laterRes . debug ;
521- await core . summary
522- . addDetails (
523- "[INFO]" ,
524- `\`\`\`json\n${ JSON . stringify ( debug , null , 2 ) } \n\`\`\``
525- )
526- . write ( ) ;
521+
522+ // Test if debug data exists
523+ console . log ( "DEBUG DATA EXISTS:" , ! ! debug ) ;
524+ console . log ( "DEBUG DATA:" , debug ) ;
525+
526+ if ( debug ) {
527+ await core . summary
528+ . addDetails (
529+ "[INFO]" ,
530+ `\`\`\`json\n${ JSON . stringify ( debug , null , 2 ) } \n\`\`\``
531+ )
532+ . write ( ) ;
533+ } else {
534+ await core . summary
535+ . addHeading ( "⚠️ No Debug Data" )
536+ . addRaw ( "Backend did not return debug data" )
537+ . write ( ) ;
538+ }
527539
528540 console . warn ( "\n" ) ;
529541 console . warn ( "⚡️ Your npm packages are published.\n" ) ;
You can’t perform that action at this time.
0 commit comments