fix: hardcode API base for Forgejo publish
This commit is contained in:
parent
b10b985ae1
commit
5ce1d27e96
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue