Skip to content

Commit

Permalink
fix: sanitizes the input for the commitlint GH workflow. (#167)
Browse files Browse the repository at this point in the history
fix: sanitizes the input for the commitlint GH workflow
  • Loading branch information
gvarandas authored Apr 10, 2024
1 parent 70b9353 commit 3f953bd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/conventional-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3f953bd

Please sign in to comment.