fix: install workflow runtime dependencies
This commit is contained in:
parent
423ae7cde9
commit
46f61d6660
|
|
@ -22,6 +22,13 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install runtime dependencies
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y jq curl ca-certificates python3
|
||||||
|
|
||||||
- name: Load skill doc content
|
- name: Load skill doc content
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -65,6 +72,7 @@ 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