From 753af2b0ff5c66f06309abe19468adb85ac58473 Mon Sep 17 00:00:00 2001 From: "kiyoshi.guo" Date: Wed, 1 May 2024 10:14:53 -0700 Subject: [PATCH] chore(*): replaced original commitlint gh action --- .github/workflows/commitlint.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index f57fff5..184591c 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -8,6 +8,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Install Dependencies - run: npm install @commitlint/config-conventional - - uses: JulienKode/pull-request-name-linter-action@v0.5.0 + + - name: Install commitlint + run: | + npm install -g @commitlint/cli @commitlint/config-conventional + + - name: Validate PR title with commitlint + if: github.event_name == 'pull_request' + run: echo '${{ github.event.pull_request.title }}' | commitlint --verbose