Skip to content

Commit 3ef96e8

Browse files
author
lucifer
committed
feat: 北京时间
1 parent 164213e commit 3ef96e8

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.github/workflows/schedule.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: daily
22
on:
33
schedule:
4-
- cron: "1 0 * * *"
4+
- cron: "1 16 * * *"
55

66
jobs:
77
Daily:

config/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
const startTime = new Date();
22

33
startTime.setMonth(4);
4-
startTime.setDate(10);
5-
startTime.setHours(0);
4+
startTime.setDate(9);
5+
startTime.setHours(16);
66
startTime.setMinutes(0);
77
startTime.setSeconds(0);
88
function join(s) {

schedule/daily-problem.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ const generateIssueContent = ({ title, link, pres, description, whys }) => {
3434
`;
3535
};
3636

37-
const generateIssueTitle = ({ day, tags, title }) =>
37+
const generateIssueTitle = ({ day, title }) =>
3838
`【Day ${day}${new Date().toLocaleDateString("en-CA")} - ${title}`;
3939

40-
async function run() {
40+
async function run(solution) {
4141
const { data } = await octokit.rest.issues.create({
4242
owner,
4343
repo,
@@ -54,4 +54,6 @@ async function run() {
5454
);
5555
}
5656

57-
run();
57+
if (solution) {
58+
run(solution);
59+
}

0 commit comments

Comments
 (0)