Skip to content

add a GitHub Workflow to validate commit messages #1

add a GitHub Workflow to validate commit messages

add a GitHub Workflow to validate commit messages #1

Workflow file for this run

---
name: Check Commit Messages
on: push
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4.0.0
with:
fetch-depth: 0
- name: Download .commitlintrc.js
uses: suisei-cn/actions-download-file@v1.4.0
with:
url: "https://raw.githubusercontent.com/fharper/gh-configs/main/.commitlintrc.js"
- name: Lint the commits
uses: wagoid/commitlint-github-action@v5.4.3
with:
configFile: .commitlintrc.js
failOnWarnings: true