NO-ISSUE fix: if expression
Some checks failed
Frontend CI / build (push) Successful in 1m20s
PR Title Check / pr-title-check (pull_request) Failing after 16s

This commit is contained in:
SquidSpirit 2025-01-20 23:32:21 +08:00
parent 1ffeba7da8
commit 7f9d717929

View File

@ -11,7 +11,7 @@ jobs:
- name: Check PR title - name: Check PR title
run: | run: |
title=${{ gitea.event.pull_request.title }} 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`' echo 'The title is not meet the format `BLOG-XXX Title title title`'
exit 1 exit 1
else else