0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00
logto/.github/workflows/commitlint.yml
renovate[bot] 8df08d9671
chore(deps): update silverhand-io/actions-node-pnpm-run-steps action to v1.2.3 (#1608)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-20 06:42:42 +08:00

30 lines
723 B
YAML

name: Commitlint
on:
push:
branches:
- 'push-action/**'
pull_request:
types: [opened, edited, synchronize, reopened]
concurrency:
group: commitlint-${{ github.ref }}
cancel-in-progress: true
jobs:
lint-commits:
if: github.event_name == 'pull_request'
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.3
- 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