chore(ci): add commit format check #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Verify Commit Format | |
on: | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Run commit linter | |
uses: ahmadnassri/action-commit-lint@c46b910837381d1b39c7b7ede72666d7f3e83222 #v2 | |
with: | |
config: conventional | |
- name: Point to contributing guide | |
if: failure() | |
run: | | |
echo "Commit message does not follow the contributing guidelines" | |
echo " https://github.com/Water-Melon/Melon/blob/master/CONTRIBUTING.md#commit-message-format" | |
exit 1 |