Fix: installa jq se assente sul runner

This commit is contained in:
2026-05-30 23:24:36 +02:00
parent d35a5cc717
commit 4ca5287d67

View File

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