Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit 5efc804

Browse files
committed
fix: gh action schedule output
1 parent 5cbd2a5 commit 5efc804

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/app/api/system/checks/route.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export async function GET(request, { params }) {
6464

6565
// perform checks on these repositories
6666
// use the owners github token (repository->user->account.access_token)
67-
let runs = { attempted: [], sucessful: [] };
67+
let runs = { attempted: [], successful: [] };
6868
repoStatus.run.map(async (repo) => {
6969
try {
7070
const responses = await getAllRepoData(repo.url, repo.token);
@@ -103,7 +103,7 @@ export async function GET(request, { params }) {
103103
},
104104
});
105105

106-
runs.sucessful.push({ url: repo.url });
106+
runs.successful.push({ url: repo.url });
107107
} catch (e) {
108108
console.error(e);
109109
runs.attempted.push({ url: repo.url });
@@ -113,7 +113,8 @@ export async function GET(request, { params }) {
113113
console.log("CHECKS PERFORMED", runs);
114114

115115
return Response.json({
116-
runs: runs.length,
116+
runs: runs.successful.length,
117+
failed: runs.attempted.length,
117118
ignores: repoStatus.ignore.length,
118119
errors: repoStatus.error.length,
119120
});

0 commit comments

Comments
 (0)