diff --git a/.gitea/workflows/pr-title-check.yaml b/.gitea/workflows/pr-title-check.yaml index 3487895..42df333 100644 --- a/.gitea/workflows/pr-title-check.yaml +++ b/.gitea/workflows/pr-title-check.yaml @@ -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