From 2ac1315809c13b4780bfa22ffc5a701a9e31d73d Mon Sep 17 00:00:00 2001 From: Paul Delafosse Date: Thu, 30 May 2024 08:41:33 +0200 Subject: [PATCH] ci: add verify PR action --- .github/workflows/ci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eda86b1..f416a8a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,13 @@ jobs: git config --global user.name github-actions - name: Conventional commit check - uses: cocogitto/cocogitto-action@v3.7 + uses: cocogitto/cocogitto-action@v3 with: git-user: 'github-actions' - git-user-email: 'github-actions@github.com' \ No newline at end of file + git-user-email: 'github-actions@github.com' + + - name: Conventional commit check + if: ${{ github.event_name == 'pull_request' }} + uses: cocogitto/cocogitto-action@v3 + with: + verify: ${{ github.event.pull_request.title }} \ No newline at end of file