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