fix: default skill doc path in load step

This commit is contained in:
ivanberry 2026-03-12 08:23:08 +08:00
parent de691cbf79
commit c93c6d57b7
1 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,9 @@ jobs:
shell: bash shell: bash
run: | run: |
set -euo pipefail set -euo pipefail
if [ -z "${SKILL_DOC_PATH:-}" ]; then
SKILL_DOC_PATH="SKILL.md"
fi
DOC_ABS_PATH="${SKILL_SUBPATH:+$SKILL_SUBPATH/}${SKILL_DOC_PATH}" DOC_ABS_PATH="${SKILL_SUBPATH:+$SKILL_SUBPATH/}${SKILL_DOC_PATH}"
if [ ! -f "$DOC_ABS_PATH" ]; then if [ ! -f "$DOC_ABS_PATH" ]; then
if [ -f "${SKILL_SUBPATH:+$SKILL_SUBPATH/}README.md" ]; then if [ -f "${SKILL_SUBPATH:+$SKILL_SUBPATH/}README.md" ]; then