ci: use bracketed deploy directives to avoid false matches
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:
@@ -11,15 +11,9 @@ jobs:
|
||||
frontend:
|
||||
runs-on: rust
|
||||
if: >-
|
||||
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')
|
||||
|| 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:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -48,15 +42,9 @@ jobs:
|
||||
backend:
|
||||
runs-on: rust
|
||||
if: >-
|
||||
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')
|
||||
|| 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:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
|
||||
Reference in New Issue
Block a user