Skip to content

fix: sanitizes the input for the commitlint GH workflow. #490

fix: sanitizes the input for the commitlint GH workflow.

fix: sanitizes the input for the commitlint GH workflow. #490

name: Conventional Commits Checker
on:
pull_request:
types: [opened, synchronize, reopened, edited]
jobs:
lint-commits:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: Setup NodeJS and NPM
uses: actions/setup-node@v2
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 "$TITLE" $COMMITS