From abd601770e201ecc2c8e8ca9850de90cbf389750 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 28 Jun 2026 11:43:58 +0800 Subject: [PATCH] fix(ci): add no-op stale cd cancellation job --- .gitea/workflows/cd.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml index 7023d6dc..282ae1b3 100644 --- a/.gitea/workflows/cd.yaml +++ b/.gitea/workflows/cd.yaml @@ -45,6 +45,18 @@ env: ALERT_CHAIN_API_URL: https://awoooi.wooo.work jobs: + cancel-stale-cd: + # 2026-06-28 Codex: keep a visible no-op run for controlled queue + # cancellation. If every job is skipped, Gitea may not create a run and + # the stale pre-guard CD queue is not superseded by concurrency. + if: ${{ github.event_name == 'push' && contains(github.event.head_commit.message, 'cancel-stale-cd') }} + runs-on: awoooi-host + timeout-minutes: 3 + steps: + - name: Confirm Stale CD Queue Cancellation + run: | + echo "cancel-stale-cd marker accepted; deploy jobs are intentionally skipped." + tests: # 2026-06-28 Codex: Gitea does not consistently short-circuit `[skip ci]` # on CD-generated deploy commits. Skip jobs explicitly so marker commits