Skip to content

Commit

Permalink
ci: fail the pr title check if commitlint failed [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored and mfatihaktas committed Dec 20, 2023
1 parent 7ca064d commit 75637a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ jobs:
if: steps.lint.outputs.failed == '1' && steps.fc.outputs.comment-body == ''
uses: peter-evans/create-or-update-comment@v3
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: |
**ACTION NEEDED**
Expand All @@ -62,3 +61,7 @@ jobs:
The PR title and description are used as the merge commit message.
Please update your PR title and description to match the specification.
- name: fail the check if commitlint failed
if: steps.lint.outputs.failed == '1'
run: exit 1 # templating not allowed here it seems

0 comments on commit 75637a0

Please sign in to comment.