Files
computer-playbook/scripts/github/gate/fork_prereqs.sh
T
kevinveenbirkenbachandClaude Opus 4.8 fb731041f4 refactor(ci): extract fork-prereq gate to a script; drop gate jobs
Move the inline fork-prerequisites result assertion out of the
fork-prereqs-ready job into scripts/github/gate/fork_prereqs.sh (result
passed via the RESULT env var; the job now checks out the repo).

The staged diff also drops the code-quality-gate and test-install-gate
aggregator jobs and wires their members (lint, test, security-codeql,
test-install-make, test-install-pkgmgr) directly into the done job's needs,
which still hard-fails on any upstream failure or cancellation.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-21 03:01:35 +02:00

15 lines
340 B
Bash
Executable File

#!/usr/bin/env bash
#
# Inputs via env:
# RESULT the wait-fork-prereq-run job result (needs.<job>.result).
set -euo pipefail
: "${RESULT:?}"
if [[ "${RESULT}" != "success" && "${RESULT}" != "skipped" ]]; then
echo "Fork prerequisites are not ready. wait-fork-prereq-run=${RESULT}" >&2
exit 1
fi
echo "Fork prerequisites are ready."