fix(ci): keep warning-step workflow parseable
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 21s
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 21s
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
# Controlled-copy default:
|
||||
# - no push / pull_request / pull_request_target trigger
|
||||
# - no generic runner labels
|
||||
# - job is disabled until a separate controlled gate changes the switch
|
||||
# - runtime warning-step job is disabled until a separate controlled gate changes the switch
|
||||
# - no secrets, host writes, workflow dispatch from Codex, or runtime apply
|
||||
|
||||
name: AWOOOI Onboarding Warning Step
|
||||
@@ -15,6 +15,16 @@ env:
|
||||
AWOOOI_ONBOARDING_WARNING_STEP_EXECUTION_ENABLED: "0"
|
||||
|
||||
jobs:
|
||||
workflow-shape:
|
||||
# Gitea 1.25 can mark a workflow invalid when every root job has a job-level
|
||||
# `if`. Keep this no-op root job so the template remains parseable while
|
||||
# the runtime warning-step job below stays fail-closed.
|
||||
runs-on: awoooi-non110-host
|
||||
timeout-minutes: 1
|
||||
steps:
|
||||
- name: Confirm fail-closed warning-step workflow shape
|
||||
run: echo "warning-step runtime job remains disabled by default."
|
||||
|
||||
warning-step:
|
||||
if: ${{ env.AWOOOI_ONBOARDING_WARNING_STEP_EXECUTION_ENABLED == '1' }}
|
||||
runs-on: awoooi-non110-host
|
||||
|
||||
@@ -271,6 +271,8 @@ def test_warning_step_template_copy_is_fail_closed_and_pressure_guarded():
|
||||
assert forbidden not in workflow
|
||||
|
||||
assert "workflow_dispatch:" in workflow
|
||||
assert "workflow-shape:" in workflow
|
||||
assert "Confirm fail-closed warning-step workflow shape" in workflow
|
||||
assert "runs-on: awoooi-non110-host" in workflow
|
||||
assert 'AWOOOI_ONBOARDING_WARNING_STEP_EXECUTION_ENABLED: "0"' in workflow
|
||||
assert "ops/runner/guard-gitea-runner-pressure.py --root ." in workflow
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# Controlled-copy default:
|
||||
# - no push / pull_request / pull_request_target trigger
|
||||
# - no generic runner labels
|
||||
# - job is disabled until a separate controlled gate changes the switch
|
||||
# - runtime warning-step job is disabled until a separate controlled gate changes the switch
|
||||
# - no secrets, host writes, workflow dispatch from Codex, or runtime apply
|
||||
|
||||
name: AWOOOI Onboarding Warning Step
|
||||
@@ -15,6 +15,16 @@ env:
|
||||
AWOOOI_ONBOARDING_WARNING_STEP_EXECUTION_ENABLED: "0"
|
||||
|
||||
jobs:
|
||||
workflow-shape:
|
||||
# Gitea 1.25 can mark a workflow invalid when every root job has a job-level
|
||||
# `if`. Keep this no-op root job so the template remains parseable while
|
||||
# the runtime warning-step job below stays fail-closed.
|
||||
runs-on: awoooi-non110-host
|
||||
timeout-minutes: 1
|
||||
steps:
|
||||
- name: Confirm fail-closed warning-step workflow shape
|
||||
run: echo "warning-step runtime job remains disabled by default."
|
||||
|
||||
warning-step:
|
||||
if: ${{ env.AWOOOI_ONBOARDING_WARNING_STEP_EXECUTION_ENABLED == '1' }}
|
||||
runs-on: awoooi-non110-host
|
||||
|
||||
Reference in New Issue
Block a user