ci(commit-lint): add commit-lint
Add commit-lint
This commit is contained in:
parent
a516fe8d4b
commit
d56111af78
1 changed files with 21 additions and 0 deletions
21
.github/workflows/commit-lint.yml
vendored
Normal file
21
.github/workflows/commit-lint.yml
vendored
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
name: commit-lint
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
commit-lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 2
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Commit lint
|
||||||
|
# Dependabot sometimes makes some really long commit messages and I can't stop it
|
||||||
|
continue-on-error: ${{ contains(github.event.pull_request.labels.*.name, 'dependencies') || github.actor == 'dependabot[bot]' }}
|
||||||
|
uses: ahmadnassri/action-conventional-commit-lint@v2.1.9
|
||||||
|
with:
|
||||||
|
token: ${{ github.token }}
|
Loading…
Reference in a new issue