feat(ci): copy onboarding warning-step template
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Failing after 30s
CD Pipeline / build-and-deploy (push) Has been skipped
CD Pipeline / post-deploy-checks (push) Has been skipped

This commit is contained in:
Your Name
2026-06-30 00:17:57 +08:00
parent 56ba5fc38d
commit a6171746f9
5 changed files with 229 additions and 7 deletions

View File

@@ -10,25 +10,58 @@ _SCHEMA_VERSION = "awoooi_gitea_onboarding_warning_step_template_copy_execution_
def load_latest_awoooi_gitea_onboarding_warning_step_template_copy_execution_plan() -> dict[str, Any]:
"""Return the dry-run-only template copy plan source."""
"""Return the controlled template copy plan source."""
return source_ready_payload(
schema_version=_SCHEMA_VERSION,
source_id="warning_step_template_copy_execution_plan_service",
status="dry_run_plan_ready_apply_gate_required",
status="controlled_template_copy_execution_plan_ready",
readback={
"execution_status": "blocked_apply_gate_required",
"dry_run_only": True,
"execution_status": "ready_for_controlled_template_copy",
"dry_run_only": False,
"controlled_apply_scope": "warning_step_template_copy_only",
"source_template_path": (
"docs/operations/templates/"
"awoooi-gitea-onboarding-warning-step.workflow.yaml"
),
"destination_workflow_path": (
".gitea/workflows/awoooi-onboarding-warning-step.yaml"
),
"command_preview_count": 1,
"command_preview": [
"copy warning-step template after apply gate confirms source readiness"
(
"cp docs/operations/templates/"
"awoooi-gitea-onboarding-warning-step.workflow.yaml "
".gitea/workflows/awoooi-onboarding-warning-step.yaml"
)
],
"template_runtime_default": "fail_closed_job_disabled",
"forbidden_events": [
"push",
"pull_request",
"pull_request_target",
],
"forbidden_runner_labels": [
"awoooi-host",
"awoooi-ubuntu",
"ubuntu-latest",
"ubuntu-*",
"self-hosted",
],
"allowed_runner_labels": [
"awoooi-non110-host",
],
"post_copy_validators": [
"python3 ops/runner/guard-gitea-runner-pressure.py --root .",
"git diff --check",
],
"rollback_plan": (
"remove .gitea/workflows/awoooi-onboarding-warning-step.yaml "
"before commit"
),
},
next_actions=[
"open_template_copy_apply_gate",
"do_not_copy_workflow_until_apply_gate_allows",
"copy_warning_step_template_with_fail_closed_runtime_default",
"run_runner_pressure_guard_and_git_diff_check",
"do_not_trigger_workflow_until_next_controlled_gate",
],
)