Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

fix: add branch to blog hook

Dillion Verma9d004ef48f90
diff --git a/apps/www/app/api/blog-webhook/route.ts b/apps/www/app/api/blog-webhook/route.ts
index 41574ed0..73ea4b47 100644
--- a/apps/www/app/api/blog-webhook/route.ts
+++ b/apps/www/app/api/blog-webhook/route.ts
@@ -2,6 +2,7 @@ import { NextRequest, NextResponse } from "next/server";
const REPO_OWNER = "magicuidesign";
const REPO_NAME = "magicui";
+const BRANCH = "main";
const WORKFLOW_FILE = "publish-article.yml";
export async function POST(request: NextRequest) {
@@ -25,6 +26,7 @@ export async function POST(request: NextRequest) {
"Content-Type": "application/json",
},
body: JSON.stringify({
+ ref: BRANCH,
inputs: { payload },
}),
},