fix(ci): match cancel-stale-cd guard without brackets

This commit is contained in:
Your Name
2026-06-28 11:42:19 +08:00
parent ebc45e87c3
commit 46924dc721
2 changed files with 6 additions and 6 deletions

View File

@@ -48,9 +48,9 @@ jobs:
tests:
# 2026-06-28 Codex: Gitea does not consistently short-circuit `[skip ci]`
# on CD-generated deploy commits. Skip jobs explicitly so marker commits
# do not trigger a self-feeding CD loop; `[cancel-stale-cd]` is a
# do not trigger a self-feeding CD loop; `cancel-stale-cd` is a
# controlled no-op trigger used only to cancel stale pre-guard runs.
if: ${{ github.event_name != 'push' || (!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[cancel-stale-cd]')) }}
if: ${{ github.event_name != 'push' || (!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, 'cancel-stale-cd')) }}
# 2026-04-30 Codex: run the tests job on the host runner and launch the
# CI image explicitly. The act-managed job container can disappear mid-test
# with Docker RWLayer=nil on the shared 110 daemon.
@@ -308,7 +308,7 @@ jobs:
build-and-deploy:
# 2026-06-28 Codex: keep CD-generated `[skip ci]` deploy commits from
# re-entering build/deploy and writing another deploy marker commit.
if: ${{ github.event_name != 'push' || (!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[cancel-stale-cd]')) }}
if: ${{ github.event_name != 'push' || (!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, 'cancel-stale-cd')) }}
# 2026-04-30 Codex: Docker builds run on the host runner. Long docker build
# steps were killing the transient act job container with RWLayer=nil.
needs: [tests]
@@ -1236,7 +1236,7 @@ jobs:
post-deploy-checks:
# 2026-06-28 Codex: post-deploy checks belong to real deploy runs; skip
# CD-generated marker commits already read back by the prior deploy run.
if: ${{ github.event_name != 'push' || (!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[cancel-stale-cd]')) }}
if: ${{ github.event_name != 'push' || (!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, 'cancel-stale-cd')) }}
needs: [build-and-deploy]
timeout-minutes: 30
# 2026-04-30 Codex: keep post-deploy on the host runner too. Playwright

View File

@@ -17,9 +17,9 @@ env:
jobs:
ai-code-review:
# 2026-06-28 Codex: deploy marker commits are generated by CD and carry
# `[skip ci]`; `[cancel-stale-cd]` is a controlled no-op trigger. Skip both
# `[skip ci]`; `cancel-stale-cd` is a controlled no-op trigger. Skip both
# at job level to avoid queued runner churn.
if: ${{ github.event_name != 'push' || (!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[cancel-stale-cd]')) }}
if: ${{ github.event_name != 'push' || (!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, 'cancel-stale-cd')) }}
runs-on: awoooi-ubuntu
timeout-minutes: 8
steps: