mirror of
https://github.com/playit-cloud/playit-agent.git
synced 2026-07-02 09:12:29 +00:00
12 lines
388 B
Bash
12 lines
388 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
API_KEY="${1:?missing API key}"
|
|
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
|
|
|
|
curl --fail-with-body -X POST \
|
|
--header "authorization: Api-Key ${API_KEY}" \
|
|
--header "content-type: application/json" \
|
|
--data-binary "@${SCRIPT_DIR}/../agent-schema-release.json" \
|
|
"https://api.playit.gg/release/agent_version"
|