mirror of
https://github.com/material-components/material-web.git
synced 2026-01-24 17:46:00 +08:00
18 lines
400 B
YAML
18 lines
400 B
YAML
name: commitlint
|
|
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
commitlint:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
|
|
- run: npm install -g commitlint @commitlint/config-conventional
|
|
- run: 'echo "${PR_TITLE}" | commitlint -x @commitlint/config-conventional'
|
|
env:
|
|
PR_TITLE: ${{ github.event.pull_request.title }}
|