From 53cd8c5b2690feb3fe8589ced938a09a810eeb25 Mon Sep 17 00:00:00 2001 From: Guilherme Varandas Date: Wed, 10 Apr 2024 16:26:32 -0400 Subject: [PATCH] fix: sanitizes the input for the commitlint GH workflow --- .github/workflows/conventional-commits.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/conventional-commits.yml b/.github/workflows/conventional-commits.yml index c830eca..c2ad83c 100644 --- a/.github/workflows/conventional-commits.yml +++ b/.github/workflows/conventional-commits.yml @@ -15,4 +15,8 @@ jobs: node-version: 16.13.2 - name: Add @commitlint run: npm install -g @commitlint/cli @commitlint/config-conventional - - run: bin/conventional-commits.sh "${{ github.event.pull_request.title }}" ${{ github.event.pull_request.commits }} + - name: Lint PR and commits + env: + TITLE: ${{ github.event.pull_request.title }} + COMMITS: ${{ github.event.pull_request.commits }} + run: bin/conventional-commits.sh "$TITLE" $COMMITS