fix: hardcode API base for Forgejo publish
/ smoke (push) Successful in 5s Details
register-skill-release / register-skill-version (push) Failing after 11s Details

This commit is contained in:
ivanberry 2026-03-12 09:36:09 +08:00
parent d6ce01e6a7
commit 423ae7cde9
1 changed files with 2 additions and 3 deletions

View File

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