ci: use bracketed deploy directives to avoid false matches
Some checks are pending
CI / fmt (push) Waiting to run
CI / clippy (push) Waiting to run
Publish / frontend (push) Waiting to run
Publish / backend (push) Waiting to run
CI / check (push) Successful in 1m14s

Changed from "deploy: frontend" to "[deploy: frontend]" to prevent
substring matches against prose in the commit message body.

Directives: [deploy: frontend], [deploy: backend],
[deploy: frontend, backend]

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-07 13:26:43 +03:00
parent f62084eac7
commit d4bbe6450f

View File

@@ -11,15 +11,9 @@ jobs:
frontend: frontend:
runs-on: rust runs-on: rust
if: >- if: >-
contains(github.event.head_commit.message, 'deploy: frontend') contains(github.event.head_commit.message, '[deploy: frontend]')
|| contains(github.event.head_commit.message, 'deploy: backend, frontend') || contains(github.event.head_commit.message, '[deploy: backend, frontend]')
|| contains(github.event.head_commit.message, 'deploy: frontend, backend') || contains(github.event.head_commit.message, '[deploy: frontend, backend]')
|| contains(github.event.head_commit.message, 'Deploy: frontend')
|| contains(github.event.head_commit.message, 'Deploy: backend, frontend')
|| contains(github.event.head_commit.message, 'Deploy: frontend, backend')
|| contains(github.event.head_commit.message, 'Deploy: Frontend')
|| contains(github.event.head_commit.message, 'Deploy: Backend, Frontend')
|| contains(github.event.head_commit.message, 'Deploy: Frontend, Backend')
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -48,15 +42,9 @@ jobs:
backend: backend:
runs-on: rust runs-on: rust
if: >- if: >-
contains(github.event.head_commit.message, 'deploy: backend') contains(github.event.head_commit.message, '[deploy: backend]')
|| contains(github.event.head_commit.message, 'deploy: backend, frontend') || contains(github.event.head_commit.message, '[deploy: backend, frontend]')
|| contains(github.event.head_commit.message, 'deploy: frontend, backend') || contains(github.event.head_commit.message, '[deploy: frontend, backend]')
|| contains(github.event.head_commit.message, 'Deploy: backend')
|| contains(github.event.head_commit.message, 'Deploy: backend, frontend')
|| contains(github.event.head_commit.message, 'Deploy: frontend, backend')
|| contains(github.event.head_commit.message, 'Deploy: Backend')
|| contains(github.event.head_commit.message, 'Deploy: Backend, Frontend')
|| contains(github.event.head_commit.message, 'Deploy: Frontend, Backend')
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4