From 54266f97f8026f6ed0944c324d36e5f40bb16825 Mon Sep 17 00:00:00 2001 From: pohgxz Date: Thu, 5 Feb 2026 22:47:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=9D=E8=AF=95=E4=BF=AE=E5=A4=8D=20U?= =?UTF-8?q?pdate=20apifox=20=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7b840fde..2e91a160 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -459,7 +459,7 @@ jobs: pnpm run build:openapi # 读取并压缩 openapi.json 内容 - OPENAPI_CONTENT=$(cat packages/napcat-schema/openapi.json | tr -d '\n\r\t' | sed 's/ */ /g' | sed 's/"/\\"/g') + OPENAPI_CONTENT=$(cat packages/napcat-schema/dist/openapi.json | tr -d '\n\r\t' | sed 's/ */ /g' | sed 's/"/\\"/g') # 构建 JSON 数据 JSON_DATA=$(printf '{ @@ -475,7 +475,7 @@ jobs: curl --location -g --request POST 'https://api.apifox.com/v1/projects/5348325/import-openapi?locale=zh-CN' \ --header 'X-Apifox-Api-Version: 2024-03-28' \ - --header 'Authorization: Bearer $APIFOX_TOKEN' \ + --header "Authorization: Bearer $APIFOX_TOKEN" \ --header 'Content-Type: application/json' \ --data-raw "$JSON_DATA"