From 4ca5287d67769e70518a30e88d0d84bc8987f8b1 Mon Sep 17 00:00:00 2001 From: alberto Date: Sat, 30 May 2026 23:24:36 +0200 Subject: [PATCH] Fix: installa jq se assente sul runner --- triage-issue/action.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/triage-issue/action.yml b/triage-issue/action.yml index fa00519..7304767 100644 --- a/triage-issue/action.yml +++ b/triage-issue/action.yml @@ -44,6 +44,15 @@ runs: shell: bash run: | set -euo pipefail + if ! command -v jq &> /dev/null; then + echo "jq non trovato, tentativo di installazione..." + if command -v apt-get &> /dev/null; then + apt-get update -qq && apt-get install -y -qq jq 2>&1 || true + elif command -v apk &> /dev/null; then + apk add --no-cache jq 2>&1 || true + fi + command -v jq &> /dev/null || { echo "ERRORE: impossibile installare jq."; exit 1; } + fi mkdir -p ~/.local/share/opencode jq -n \ --arg provider "opencode-go" \