File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 pull_request :
1818 # The branches below must be a subset of the branches above
1919 branches : [ master ]
20- schedule :
21- - cron : ' 25 22 * * 0'
2220
2321jobs :
2422 analyze :
Original file line number Diff line number Diff line change 44 push :
55 branches : [ master ]
66
7- workflow_dispatch : {}
8-
97jobs :
108 release :
119 name : Node.js
12- uses : artusjs /github-actions/.github/workflows/node-release.yml@v1
10+ uses : node-modules /github-actions/.github/workflows/node-release.yml@master
1311 secrets :
1412 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
1513 GIT_TOKEN : ${{ secrets.GIT_TOKEN }}
Original file line number Diff line number Diff line change @@ -433,15 +433,19 @@ function recordRecentlyUpdates(options) {
433433 }
434434
435435 const today = moment ( ) . format ( 'YYYY-MM-DD' ) ;
436+ const yesterday = moment ( ) . add ( - 1 , 'days' ) . format ( 'YYYY-MM-DD' ) ;
436437 const keys = Object . keys ( displays ) . sort ( ( a , b ) => {
437438 return a > b ? - 1 : 1 ;
438439 } ) ;
439440
440441 recentlyUpdatesText += '\n' ;
441442 for ( const key of keys ) {
442443 const isToday = key === today ;
444+ const isYesterday = key === yesterday ;
443445 const label = isToday ? 'Today:' : key ;
444- const logToConsole = ! options . onlyShowTodayUpdateToConsole || ( options . onlyShowTodayUpdateToConsole && isToday ) ;
446+ // today or yesterday
447+ const logToConsole = ! options . onlyShowTodayUpdateToConsole ||
448+ ( options . onlyShowTodayUpdateToConsole && ( isToday || isYesterday ) ) ;
445449 const text = ` ${ label } ` ;
446450 recentlyUpdatesText += `${ text } \n` ;
447451
You can’t perform that action at this time.
0 commit comments