From 55154016143fae8da86c649e3d39cb3c0520cc95 Mon Sep 17 00:00:00 2001 From: amaliadwiy Date: Fri, 22 May 2026 17:30:19 +0800 Subject: [PATCH] fix: workflow dispatch ref dari main ke stg Publish dan re-pull workflow harus di-trigger dari branch stg, bukan main, agar kode yang di-build sesuai dengan yang di-deploy ke stg. --- scripts/mcp-deploy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mcp-deploy.ts b/scripts/mcp-deploy.ts index 768dae7..ffd12cb 100644 --- a/scripts/mcp-deploy.ts +++ b/scripts/mcp-deploy.ts @@ -21,7 +21,7 @@ async function triggerWorkflow(workflow: string, inputs: Record) const res = await fetch(`${BASE_URL}/actions/workflows/${workflow}/dispatches`, { method: 'POST', headers: ghHeaders, - body: JSON.stringify({ ref: 'main', inputs }), + body: JSON.stringify({ ref: 'stg', inputs }), }) if (!res.ok) throw new Error(`GitHub API error ${res.status}: ${await res.text()}`) }