Skip to content

Commit 328ecdf

Browse files
author
lucifer
committed
test
1 parent 07cc238 commit 328ecdf

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

Diff for: .github/workflows/schedule.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: daily
22
on:
3+
push:
34
schedule:
45
- cron: "0 16 * * *"
56

Diff for: schedule/daily-problem.js

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ const octokit = new Octokit({ auth: process.env.issueToken });
1010

1111
const solution = solutions[getDay()];
1212

13+
console.log(solution, getDay());
14+
1315
// generate content for issues
1416
const generateIssueContent = ({ title, link, pres, description, whys }) => {
1517
return `# ${title}

Diff for: utils/day.js

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const MS_PER_DAY = 24 * 60 * 60 * 1000;
44

55
module.exports = {
66
getDay(date = new Date().getTime()) {
7-
console.log(startTime);
87
return ((date - startTime + MS_PER_DAY - 1) / MS_PER_DAY) >> 0;
98
},
109
};

0 commit comments

Comments
 (0)