From 7a798ab47a7cfed8518d4a02dd4bbe2ebaa89966 Mon Sep 17 00:00:00 2001 From: alecrajeev <13004609+alecrajeev@users.noreply.github.com> Date: Thu, 18 Dec 2025 20:34:11 -0500 Subject: [PATCH] fix github response --- dist/index.mjs | 4 ++-- src/api.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.mjs b/dist/index.mjs index 0dc0f290..6df72c4a 100644 --- a/dist/index.mjs +++ b/dist/index.mjs @@ -24067,9 +24067,9 @@ async function dispatchWorkflow(distinctId) { distinct_id: distinctId } }); - if (response.status !== 204) { + if (!(response.status == 204 || response.status == 200)) { throw new Error( - `Failed to dispatch action, expected 204 but received ${response.status}` + `Failed to dispatch action, expected 200 or 204 but received ${response.status}` ); } core3.info( diff --git a/src/api.ts b/src/api.ts index f1944dab..51bc88c9 100644 --- a/src/api.ts +++ b/src/api.ts @@ -31,9 +31,9 @@ export async function dispatchWorkflow(distinctId: string): Promise { }); // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition - if (response.status !== 204) { + if (!(response.status == 204 || response.status == 200)) { throw new Error( - `Failed to dispatch action, expected 204 but received ${response.status}`, + `Failed to dispatch action, expected 200 or 204 but received ${response.status}`, ); }