ci: fix regex

This commit is contained in:
Thomas Hobson 2021-02-28 16:07:16 +13:00
parent ba539b8965
commit 88faac0335
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 2 additions and 2 deletions

View File

@ -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