Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

Commit 3f953bd

Browse files
authored
fix: sanitizes the input for the commitlint GH workflow. (#167)
fix: sanitizes the input for the commitlint GH workflow
1 parent 70b9353 commit 3f953bd

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/conventional-commits.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,8 @@ jobs:
1515
node-version: 16.13.2
1616
- name: Add @commitlint
1717
run: npm install -g @commitlint/cli @commitlint/config-conventional
18-
- run: bin/conventional-commits.sh "${{ github.event.pull_request.title }}" ${{ github.event.pull_request.commits }}
18+
- name: Lint PR and commits
19+
env:
20+
TITLE: ${{ github.event.pull_request.title }}
21+
COMMITS: ${{ github.event.pull_request.commits }}
22+
run: bin/conventional-commits.sh "$TITLE" $COMMITS

0 commit comments

Comments
 (0)