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" \