mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-25 06:52:13 +00:00
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 <tim@hyper.sh>
This commit is contained in:
parent
bba2773d7d
commit
cfa35a90b2
2
.github/workflows/commit-message-check.yaml
vendored
2
.github/workflows/commit-message-check.yaml
vendored
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user