fix(gitea-actions): replace workflow_run with push trigger (fixes #695) #706

Closed
infra-sre wants to merge 1 commits from sre/workflow-run-replacement into main

1 Commits

Author SHA1 Message Date
42a2a05a77 fix(gitea-actions): replace workflow_run with push trigger on main
Some checks failed
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 5s
Lint curl status-code capture / Scan workflows for curl status-capture pollution (pull_request) Successful in 9s
Harness Replays / detect-changes (pull_request) Successful in 10s
CI / Detect changes (pull_request) Successful in 17s
E2E API Smoke Test / detect-changes (pull_request) Successful in 19s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 19s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 20s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 13s
Runtime PR-Built Compatibility / detect-changes (pull_request) Successful in 21s
qa-review / approved (pull_request) Failing after 13s
Harness Replays / Harness Replays (pull_request) Successful in 6s
security-review / approved (pull_request) Failing after 12s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 4s
CI / Canvas (Next.js) (pull_request) Successful in 7s
CI / Python Lint & Test (pull_request) Successful in 4s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 8s
Runtime PR-Built Compatibility / PR-built wheel + import smoke (pull_request) Successful in 7s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m12s
Lint workflow YAML (Gitea-1.22.6-hostile shapes) / Lint workflow YAML for Gitea-1.22.6-hostile shapes (pull_request) Successful in 1m26s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Failing after 2m23s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 2m35s
sop-checklist / all-items-acked (pull_request) acked: 0/7 — missing: comprehensive-testing, local-postgres-e2e, staging-smoke, +4 — body-unfilled: 7
gate-check-v3 / gate-check (pull_request) Successful in 5s
audit-force-merge / audit (pull_request) Has been skipped
CI / Platform (Go) (pull_request) Failing after 5m38s
CI / all-required (pull_request) Failing after 1s
sop-checklist-gate / gate (pull_request) Successful in 19s
sop-tier-check / tier-check (pull_request) Successful in 16s
Rule 2 (Fatal): `on: workflow_run:` is not supported by Gitea 1.22.6
(verified via modules/actions/workflows.go enumeration; task #81).
Three workflow files were using it:

- redeploy-tenants-on-main.yml
- staging-verify.yml
- redeploy-tenants-on-staging.yml

Fix: replace `on: workflow_run: workflows: ['publish-workspace-server-image']`
with `on: push: branches: [main]: paths: ['.gitea/workflows/publish-workspace-server-image.yml']`.

The push trigger fires when the upstream workflow file is updated
(post-merge of publish-workspace-server-image), which is the best
available proxy for "publish succeeded" without workflow_run.

Also removed the `if: github.event.workflow_run.conclusion == 'success'`
conditionals (no longer applicable) and updated
`github.event.workflow_run.head_sha` references to `github.sha`.

continue-on-error: true on all three workflows means any semantic
regression from the trigger swap won't block merges during the Phase 3
surface-broken-shapes period (RFC #219 §1).

Closes #695.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-12 09:00:53 +00:00