ci(sync-maintainers): fix accidental .catch() (#679)
This commit is contained in:
1 parent
71cb790206
commit
edd82e7077
1 file changed
+2
-5
@@ -8,15 +8,12 @@ import { getUserstylesData } from "@/utils.ts";
|
|||||||
const octokit = new Octokit({ auth: Deno.env.get("GITHUB_TOKEN") });
|
const octokit = new Octokit({ auth: Deno.env.get("GITHUB_TOKEN") });
|
||||||
const team = { org: "catppuccin", team_slug: "userstyles-maintainers" };
|
const team = { org: "catppuccin", team_slug: "userstyles-maintainers" };
|
||||||
|
|
||||||
const userstylesData = await getUserstylesData().catch((err) => {
|
const { userstyles } = getUserstylesData();
|
||||||
console.error(err);
|
|
||||||
Deno.exit(1);
|
|
||||||
});
|
|
||||||
|
|
||||||
// Lowercase usernames of all the "current-maintainers" in the file.
|
// Lowercase usernames of all the "current-maintainers" in the file.
|
||||||
const maintainers = [
|
const maintainers = [
|
||||||
...new Set(
|
...new Set(
|
||||||
Object.values(userstylesData.userstyles).flatMap((
|
Object.values(userstyles).flatMap((
|
||||||
style: UserStylesSchema.Userstyle,
|
style: UserStylesSchema.Userstyle,
|
||||||
) =>
|
) =>
|
||||||
style.readme["current-maintainers"].map((m) => {
|
style.readme["current-maintainers"].map((m) => {
|
||||||
|
|||||||
Reference in new issue
Block a user