mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-05 15:11:15 +00:00
fix: 尝试修复 Update apifox 错误
This commit is contained in:
parent
687a5f5708
commit
54266f97f8
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@ -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"
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user