From 7f9d71792927e5f40d24313cbe96dabf94678416 Mon Sep 17 00:00:00 2001 From: SquidSpirit Date: Mon, 20 Jan 2025 23:32:21 +0800 Subject: [PATCH] NO-ISSUE fix: if expression --- .gitea/workflows/pr-title-check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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