From cfa35a90b2840a2ba6c2b7f08e740afde8d0fc5c Mon Sep 17 00:00:00 2001 From: Tim Zhang Date: Fri, 21 Aug 2020 23:28:13 +0800 Subject: [PATCH] action: Fix subsystem check \h is not a valid metacharacter in javascript which is used in github-action. Use \s\t to replace it. Fixes: #551 Signed-off-by: Tim Zhang --- .github/workflows/commit-message-check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/commit-message-check.yaml b/.github/workflows/commit-message-check.yaml index 5b69585b0a..200e68dc2a 100644 --- a/.github/workflows/commit-message-check.yaml +++ b/.github/workflows/commit-message-check.yaml @@ -68,6 +68,6 @@ jobs: uses: tim-actions/commit-message-checker-with-regex@v0.3.1 with: commits: ${{ steps.get-pr-commits.outputs.commits }} - pattern: '^[\h]*([^:\h\n]+)[\h]*:' + pattern: '^[\s\t]*[^:\s\t]+[\s\t]*:' error: 'Failed to find subsystem in subject' post_error: ${{ env.error_msg }}