diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 362eaf7..159ba25 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -39,12 +39,12 @@ env: jobs: preflight: - # Kill-switch for autodeploy: set the AUTODEPLOY repo variable to 'false' - # (Settings -> Actions -> Variables) and pushes stop reaching the cluster - # with no commit. Unset means on. A manual Run workflow always bypasses - # the switch: dispatching it is the explicit intent to deploy. + # Autodeploy defaults to OFF: pushes deploy only when the AUTODEPLOY repo + # variable is set to 'true' (Settings -> Actions -> Variables). A manual + # Run workflow always bypasses the switch: dispatching it is the explicit + # intent to deploy. if: >- - (vars.AUTODEPLOY != 'false' || github.event_name == 'workflow_dispatch') && + (vars.AUTODEPLOY == 'true' || github.event_name == 'workflow_dispatch') && (github.event_name != 'workflow_run' || (github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main'))