fix: default skill doc path in load step
/ smoke (push) Successful in 3s Details
register-skill-release / register-skill-version (push) Failing after 11s Details

This commit is contained in:
ivanberry 2026-03-12 08:23:06 +08:00
parent dab9b862ba
commit d6ce01e6a7
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