peppa/packages/testkit/bin/mock-ci-register
Асель 3ab408eb70 PEP-57: CI for factory projects — act_runner, template workflow, connect CI
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 14:19:11 +05:00

8 lines
422 B
Bash
Executable File

#!/usr/bin/env bash
# mock-ci-register <name> — stands in for `docker exec peppa-act-runner peppa-runner-register`
# (PEPPA_CI_REGISTER_BIN). Same contract: token in PEPPA_RUNNER_TOKEN, name as the argument.
set -euo pipefail
: "${PEPPA_RUNNER_TOKEN:?PEPPA_RUNNER_TOKEN is required}"
printf '{"name":"%s","token":"%s"}\n' "$1" "$PEPPA_RUNNER_TOKEN" >> "${PEPPA_HOME:?}/mock-ci-register.jsonl"
echo "registered peppa-$1"