Skip to content

Commit

Permalink
Add discord notification when new extension published
Browse files Browse the repository at this point in the history
  • Loading branch information
HuakunShen committed Sep 4, 2024
1 parent 626a34b commit ed3d50f
Show file tree
Hide file tree
Showing 5 changed files with 2,212 additions and 1,279 deletions.
7 changes: 7 additions & 0 deletions ci/build-upload.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import fs from "fs"
import { join } from "path"
import { sendNewExtensionNotification } from "./src/discord"
import { supabase } from "./src/supabase"
import {
buildWithDockerAndValidate,
Expand Down Expand Up @@ -194,6 +195,12 @@ for (const buildResult of buildResults) {
demo_images: demoImgsDBPaths
}
])
sendNewExtensionNotification(
buildResult.pkg.name,
buildResult.pkg.kunkun.identifier,
buildResult.pkg.version,
buildResult.pkg.kunkun.shortDescription
)
if (error) {
console.error("Unexpected Error: Error inserting into database", error)
process.exit(1)
Expand Down
3 changes: 2 additions & 1 deletion ci/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
},
"dependencies": {
"@aws-sdk/client-s3": "^3.583.0",
"@kksh/api": "0.0.4-beta.0",
"@kksh/api": "0.0.11",
"@supabase/supabase-js": "^2.43.4",
"discord.js": "^14.16.1",
"jarvis-api": "0.0.2-alpha.16",
"sharp": "^0.33.4",
"valibot": "^0.39.0",
Expand Down
Loading

0 comments on commit ed3d50f

Please sign in to comment.