From 95901396b50da682ce506a2583d05e87f9cb1702 Mon Sep 17 00:00:00 2001 From: Asgeir Frimannsson Date: Sun, 9 Aug 2026 00:17:05 +0200 Subject: [PATCH] feat: a prerelease plugin constraint resolves on the beta channel name@X.Y.Z-rcN can only exist on beta; resolving it against stable can only fail, so the channel follows the constraint. Co-Authored-By: Claude Fable 5 --- action.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 87a38b3..d6c6032 100644 --- a/action.yml +++ b/action.yml @@ -176,8 +176,14 @@ runs: # so both spellings should install. PLUGINS=$(echo "${INPUT_PLUGINS}" | tr ',' '\n' | sed 's/^[[:space:]]*//;s/[[:space:]]*$//;s/^kapi-//' | grep -v '^$') while IFS= read -r plugin; do - echo "Installing plugin: ${plugin}" - kapi plugins install "${plugin}" + # A prerelease constraint (name@X.Y.Z-rcN) lives on the beta + # channel; resolving it against stable can only fail. + args=() + case "${plugin}" in + *@*-*) args+=(--channel beta) ;; + esac + echo "Installing plugin: ${plugin}${args:+ (${args[*]})}" + kapi plugins install ${args[@]+"${args[@]}"} "${plugin}" done <<< "${PLUGINS}" # 11. Detect a kapi project — a committed kapi.yaml recipe (or legacy *.kapi). The TM cache only