Skip to content

Commit 635d4f5

Browse files
author
robot
committed
-
1 parent 9b84ed7 commit 635d4f5

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

Diff for: .github/workflows/schedule.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: daily
22
on:
33
# Run workflow automatically
4+
push:
45
schedule:
56
# Runs every hour
67
- cron: "0 * * * *"

Diff for: routes/github.js

+6-8
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,12 @@ router.all("/api/v1/github/webhook", async (ctx) => {
4545
body: comment.body,
4646
};
4747

48-
fs.writeFileSync(
49-
path.resolve(__dirname, "../static/my/solutions.json"),
50-
JSON.stringify(mySolutions)
51-
);
52-
53-
console.log(
54-
process.execSync("sh " + path.resolve(__dirname, "../scripts/commit.sh"))
55-
);
48+
// fs.writeFileSync(
49+
// path.resolve(__dirname, "../static/my/solutions.json"),
50+
// JSON.stringify(mySolutions)
51+
// );
52+
53+
// process.execSync("sh " + path.resolve(__dirname, "../scripts/commit.sh"));
5654
}
5755

5856
ctx.body = success(mySolutions[comment.user.login]);

0 commit comments

Comments
 (0)