NO-ISSUE fix: if expression
This commit is contained in:
parent
1ffeba7da8
commit
7f9d717929
@ -11,7 +11,7 @@ jobs:
|
||||
- name: Check PR title
|
||||
run: |
|
||||
title=${{ gitea.event.pull_request.title }}
|
||||
if [[ ! $title =~ ^(BLOG-[0-9]+|NO-ISSUE) [A-Z].+$ ]]; then
|
||||
if [[ ! "$title" =~ "^(BLOG-[0-9]+|NO-ISSUE) [A-Z].+$" ]]; then
|
||||
echo 'The title is not meet the format `BLOG-XXX Title title title`'
|
||||
exit 1
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user