0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-20 21:32:31 -05:00
logto/.github/workflows/commitlint.yml
Gao Sun 4df749e142
refactor(ci): add concurrency (#1123)
* refactor(ci): add concurrency

* fix(ci): concurrency group
2022-06-17 15:58:29 +00:00

26 lines
632 B
YAML

name: Commitlint
on:
pull_request:
types: [opened, edited, synchronize, reopened]
concurrency:
group: commitlint-${{ github.ref }}
cancel-in-progress: true
jobs:
lint-commits:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v1.2.2
- name: Commitlint
run: npx commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD
- name: Commitlint on PR title
run: echo '${{ github.event.pull_request.title }}' | npx commitlint