From 456d935ae11c230b6299a798d6faf3179f468a8d Mon Sep 17 00:00:00 2001 From: Matheus Pimenta Date: Mon, 29 Jun 2026 09:18:17 +0100 Subject: [PATCH] Make plugin support gate rely on the CLI behavior instead of semver Signed-off-by: Matheus Pimenta --- action/action.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/action/action.yml b/action/action.yml index 070d039c..5ae0597d 100644 --- a/action/action.yml +++ b/action/action.yml @@ -169,15 +169,14 @@ runs: id: plugin-support-gate shell: bash if: inputs.plugins != '' - env: - V1: ${{ steps.setup-flux-bin.outputs.installed-flux-version }} run: | - if [ "$(printf '%s\n%s' "$V1" "2.9.0" | sort -V | tail -n1)" = "$V1" ]; then + flux_version="$(flux -v 2>/dev/null | awk '{print $3}')" + if flux plugin --help >/dev/null 2>&1; then echo plugin-support="yes" >> $GITHUB_OUTPUT exit 0 else echo plugin-support="no" >> $GITHUB_OUTPUT - msg="Installed Flux version $V1 does not support plugins; need >= 2.9.0. Requested plugins cannot be installed." + msg="Installed Flux version ${flux_version:-unknown} does not support plugins; need >= 2.9.0. Requested plugins cannot be installed." echo "::error title=Unsupported Flux version::$msg" echo "> [!CAUTION]" >> $GITHUB_STEP_SUMMARY echo "> $msg" >> $GITHUB_STEP_SUMMARY