diff --git a/.github/workflows/conventional-commits.yml b/.github/workflows/conventional-commits.yml index c830eca..941cbc8 100644 --- a/.github/workflows/conventional-commits.yml +++ b/.github/workflows/conventional-commits.yml @@ -14,5 +14,8 @@ jobs: with: node-version: 16.13.2 - name: Add @commitlint + env: + TITLE: ${{ github.event.pull_request.title }} + COMMITS: ${{ github.event.pull_request.commits }} run: npm install -g @commitlint/cli @commitlint/config-conventional - - run: bin/conventional-commits.sh "${{ github.event.pull_request.title }}" ${{ github.event.pull_request.commits }} + - run: bin/conventional-commits.sh "$TITLE" $COMMITS