Skip to content

Commit

Permalink
Merge pull request #47 from defenseunicorns/commitlint_fix
Browse files Browse the repository at this point in the history
fix: use workflow env for pr.title
  • Loading branch information
Racer159 committed Feb 20, 2024
2 parents 0b3e188 + ffebe4d commit b6db91a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/commitlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
npm install --save-dev @commitlint/cli@18.6.0
- name: Lint PR title
env:
pull_request_title: ${{ github.event.pull_request.title }}
run: |
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js
echo "${{ github.event.pull_request.title }}" | npx commitlint
echo "$pull_request_title" | npx commitlint

0 comments on commit b6db91a

Please sign in to comment.