fix: hardcode API base for Forgejo publish

This commit is contained in:
ivanberry 2026-03-12 09:36:14 +08:00
parent b10b985ae1
commit 5ce1d27e96
1 changed files with 2 additions and 3 deletions

View File

@ -10,7 +10,7 @@ jobs:
register-skill-version:
runs-on: docker
env:
API_BASE: ${{ secrets.API_BASE }}
API_BASE: https://api-gw-test.yuanwei-lnc.com
CLIENT_KEY: ${{ secrets.CLIENT_KEY }}
SKILL_VERSION: ${{ github.ref_name }}
SKILL_SUBPATH: ${{ secrets.SKILL_SUBPATH }}
@ -48,7 +48,7 @@ jobs:
set -euo pipefail
if [ -z "${API_BASE:-}" ]; then
echo "API_BASE is required (secret)."
echo "API_BASE is required."
exit 1
fi
if [ -z "${CLIENT_KEY:-}" ]; then
@ -65,7 +65,6 @@ jobs:
if [ -f "${SKILL_BASE_DIR}/package.json" ]; then
PKG_NAME=$(jq -r '.name // empty' "${SKILL_BASE_DIR}/package.json")
if [ -n "$PKG_NAME" ]; then
# Strip npm scope: @scope/skill-name -> skill-name
SKILL_SLUG="${PKG_NAME##*/}"
fi
fi