release-gate.sh · a sketch; the full script is in the docs
auth="Authorization: Bearer $NOVERA_KEY"
run=$(curl -fsS -X POST "$api/runs" -H "$auth" \
-H "Idempotency-Key: $GITHUB_SHA" -H 'content-type: application/json' \
-d '{"agent_id":"…","suite_id":"…"}' | jq -r .run.id)
# advance it (POST $api/runs/$run/execute) until done, then:
case $(curl -fsS "$api/runs/$run" -H "$auth" | jq -r .run.outcome) in
pass) exit 0 ;;
fail) exit 1 ;; # a scenario failed
*) exit 2 ;; # missing evidence stops the release too
esac
- 0
- pass
- 1
- fail
- 2
- incomplete
- 3
- config
- 4
- infra