From e63de45db3d70ea646977c8ff8c5519b487d1857 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..263d9df 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 conventional-changelog-conventionalcommits + npm install -g commitlint@latest + + - name: Validate PR title with commitlint + if: github.event_name == 'pull_request' + run: echo '${{ github.event.pull_request.title }}' | commitlint --verbose \ No newline at end of file