ci: fix regex
This commit is contained in:
parent
ba539b8965
commit
88faac0335
|
@ -1,7 +1,7 @@
|
||||||
name: 'Package Pull Requests'
|
name: 'Package Pull Requests'
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_requests:
|
pull_request:
|
||||||
types:
|
types:
|
||||||
- opened
|
- opened
|
||||||
- edited
|
- edited
|
||||||
|
@ -25,7 +25,7 @@ jobs:
|
||||||
uses: tim-actions/commit-message-checker-with-regex@v0.3.1
|
uses: tim-actions/commit-message-checker-with-regex@v0.3.1
|
||||||
with:
|
with:
|
||||||
commits: ${{ steps.get-pr-commits.outputs.commits }}
|
commits: ${{ steps.get-pr-commits.outputs.commits }}
|
||||||
pattern: '^[\h]*(pkg\([^:\h\n]+\))[\h]*:'
|
pattern: '^[\s]*(pkg\([^:\s\n]+\))[\s]*:'
|
||||||
error: 'Your commit message must start with pkg([package])'
|
error: 'Your commit message must start with pkg([package])'
|
||||||
|
|
||||||
- name: Get packages
|
- name: Get packages
|
||||||
|
|
Loading…
Reference in New Issue