@@ -233,10 +233,10 @@ const runWorkflow = async () => {
233
233
// Succeeded
234
234
core . info ( runnerNameArray [ index ] + ' runner succeeded. Post count: ' + result . value . length ) ;
235
235
summaryTable . push ( [
236
- { data : `<a hfef=" ${ runnerNameArray [ index ] } " >${ runnerNameArray [ index ] } </a>` , colspan : '6' } ,
237
- { data : ':white_check_mark:' } ,
238
- { data : `${ result . value . length } ` } ,
239
- { data : '<code> Runner succeeded </code>' , colspan : '6' } ] ) ;
236
+ { header : false , data : `<a href=' ${ runnerNameArray [ index ] } ' >${ runnerNameArray [ index ] } </a>` , colspan : '6' } ,
237
+ { header : false , data : ':white_check_mark:' } ,
238
+ { header : false , data : `${ result . value . length } ` } ,
239
+ { header : false , data : '<code> Runner succeeded </code>' , colspan : '6' } ] ) ;
240
240
// Adds feed name to the items
241
241
if ( typeof feedNamesList [ index ] !== undefined && feedNamesList [ index ] ) {
242
242
result . value = result . value . map ( ( item ) => {
@@ -362,6 +362,7 @@ const runWorkflow = async () => {
362
362
changedReadmeCount = changedReadmeCount + 1 ;
363
363
}
364
364
} ) ;
365
+ core . summary . addRaw ( `### Summary` , true ) ;
365
366
366
367
if ( changedReadmeCount > 0 && ! SKIP_COMMITS ) {
367
368
if ( ! process . env . TEST_MODE ) {
@@ -376,19 +377,20 @@ const runWorkflow = async () => {
376
377
if ( ! process . env . TEST_MODE && ENABLE_KEEPALIVE ) {
377
378
// Do dummy commit if elapsed time is greater than 50 days
378
379
const committerUsername = core . getInput ( 'committer_username' ) ;
379
- const committerEmail = core . getInput ( 'committer_email' ) ;
380
- const message = await keepaliveWorkflow . KeepAliveWorkflow ( GITHUB_TOKEN , committerUsername , committerEmail ,
380
+ const committerEmail = core . getInput ( 'committer_email' ) ;
381
+ const message = await keepaliveWorkflow . KeepAliveWorkflow ( GITHUB_TOKEN , committerUsername , committerEmail ,
381
382
core . getInput ( 'dummy_commit_message' ) , 50 , true ) ;
382
383
core . info ( message . toString ( ) ) ;
383
- core . summary . addRaw ( `### Summary \n ${ message . toString ( ) } ` , true ) ;
384
- core . summary . addTable ( summaryTable ) ;
385
- await core . summary . write ( ) ;
386
384
} else {
387
385
const noChangeMessage = 'No change detected, skipping' ;
388
386
core . info ( noChangeMessage ) ;
389
- core . summary . addRaw ( `### Summary \n ${ noChangeMessage } ` , true ) ;
390
- await core . summary . write ( ) ;
391
387
}
388
+ core . summary . addRaw ( `Blog posts fetched:` , true ) ;
389
+ core . summary . addTable ( summaryTable ) ;
390
+ core . summary . addRaw ( `\n#### Posts written to readme: ${ postsArray . length } ` , true ) ;
391
+ core . summary . addSeparator ( )
392
+ core . summary . addDetails ( 'Debug Info' , 'Some juicy info for devs: \n\n```json\n' + JSON . stringify ( postsArray , null , 2 ) + '\n```\n\n' ) ;
393
+ await core . summary . write ( ) ;
392
394
process . exit ( jobFailFlag ? 1 : 0 ) ;
393
395
}
394
396
} catch ( e ) {
0 commit comments