[github] Make branch workflow more robust (#66781)

Avoid false positives by requiring space after `/branch` command so the
action won't trigger on diffs that include filenames like
`.../BranchProbabilityInfo.cpp`.
This commit is contained in:
Danila Malyutin 2023-09-19 12:18:16 -07:00 committed by GitHub
parent 7db87a66b0
commit 01475dc29a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ jobs:
if: >-
(github.repository == 'llvm/llvm-project') &&
!startswith(github.event.comment.body, '<!--IGNORE-->') &&
contains(github.event.comment.body, '/branch')
contains(github.event.comment.body, '/branch ')
steps:
- name: Fetch LLVM sources