mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-12-06 17:56:32 +00:00
refactor(ci): rename env/guide jobs, drop roles_only
test-environment.yml and test-guide.yml become test-workspace.yml and test-instructions.yml. Orchestrator job ids, the distros-SPOT matrix lint, the act example, the diagnostics slug and the rescue artefact names follow. Replace the roles_only input with per-job workspace/instructions tri-state inputs (auto|true|false). 'auto' derives the former roles_only skip straight from whitelist: both jobs run on a global scope (whitelist empty or __ALL__) and are skipped on a role-scoped run, which keeps the PR behaviour identical because the diff resolver never emits an empty whitelist. entry-manual exposes both as choice dropdowns defaulting to false, so a manual run opts in explicitly. The now redundant roles_only output is dropped from pr_affected_roles.sh and subset_roles.py. Branch-protection required-status-check names change along with the job renames. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
44168069ae
commit
f482b979bd
14 files changed
+74
-58
No files matched your search
@@ -1,9 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Resolve the role whitelist for a pull-request CI run and write
|
||||
# `whitelist` + `roles_only` to GITHUB_OUTPUT. This is the single
|
||||
# entry point the `detect-affected-roles` job calls; it keeps the
|
||||
# subset-vs-diff selection logic out of the workflow YAML.
|
||||
# `whitelist` to GITHUB_OUTPUT. This is the single entry point the
|
||||
# `detect-affected-roles` job calls; it keeps the subset-vs-diff
|
||||
# selection logic out of the workflow YAML.
|
||||
#
|
||||
# Inputs via env:
|
||||
# SUBSET_LABELED "true" when the PR carries the '🧩 Subset' label.
|
||||
@@ -16,7 +16,6 @@
|
||||
#
|
||||
# Outputs (GITHUB_OUTPUT):
|
||||
# whitelist=<role-id ...|__ALL__>
|
||||
# roles_only=<true|false>
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
@@ -31,8 +30,4 @@ fi
|
||||
|
||||
resolved="$(./scripts/meta/resolve/diff/affected_roles.sh)"
|
||||
echo "Resolver output: ${resolved}"
|
||||
if [[ "${resolved}" == "__ALL__" ]]; then
|
||||
printf 'whitelist=__ALL__\nroles_only=false\n' >>"${GITHUB_OUTPUT}"
|
||||
else
|
||||
printf 'whitelist=%s\nroles_only=true\n' "${resolved}" >>"${GITHUB_OUTPUT}"
|
||||
fi
|
||||
printf 'whitelist=%s\n' "${resolved}" >>"${GITHUB_OUTPUT}"
|
||||
Reference in new issue
Block a user