From 88faac0335fb4985ea83362e048e608153bb9640 Mon Sep 17 00:00:00 2001 From: Thomas Hobson Date: Sun, 28 Feb 2021 16:07:16 +1300 Subject: [PATCH] ci: fix regex --- .github/workflows/package-pr.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/package-pr.yaml b/.github/workflows/package-pr.yaml index a2697a3..6c3bce4 100644 --- a/.github/workflows/package-pr.yaml +++ b/.github/workflows/package-pr.yaml @@ -1,7 +1,7 @@ name: 'Package Pull Requests' on: - pull_requests: + pull_request: types: - opened - edited @@ -25,7 +25,7 @@ jobs: uses: tim-actions/commit-message-checker-with-regex@v0.3.1 with: 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])' - name: Get packages