Skip to content

Commit 87c5d33

Browse files
authored
1 parent 5923e5e commit 87c5d33

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ on:
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

2321
jobs:
2422
analyze:

.github/workflows/release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ on:
44
push:
55
branches: [ master ]
66

7-
workflow_dispatch: {}
8-
97
jobs:
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 }}

lib/local_install.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)