Files
glpi-neuroforge-mega/scripts/propose-draft.sh
jbergner a6bc71fb3a
Some checks failed
release-tag / Resolve release metadata (push) Successful in 30s
release-tag / Build knowledge (push) Failing after 4m51s
release-tag / Build control (push) Failing after 5m0s
release-tag / Build agent (push) Failing after 5m0s
release-tag / Build agent-data-init (push) Failing after 5m5s
release-tag / Build neuroforge-worker (push) Failing after 5m7s
release-tag / Build neuroforge (push) Failing after 5m9s
Init
2026-08-26 18:34:41 +02:00

15 lines
403 B
Bash

#!/bin/sh
set -eu
: "${KB_INTEGRATION_TOKEN:?set KB_INTEGRATION_TOKEN}"
KB_URL=${KB_URL:-http://127.0.0.1:${KNOWLEDGE_HOST_PORT:-8081}}
if [ "$#" -ne 1 ]; then
echo "usage: $0 proposal.json" >&2
exit 2
fi
curl --fail-with-body -sS \
-H "Authorization: Bearer $KB_INTEGRATION_TOKEN" \
-H 'Content-Type: application/json' \
--data-binary "@$1" \
"$KB_URL/api/integrations/staging"
printf '\n'