signoz/.github/workflows/commitlint.yml
Workflow config file is invalid. Please check your config file: yaml: line 15: mapping values are not allowed in this context
2021-08-18 18:56:44 +05:30

17 lines
650 B
YAML

name: commitlint
on: [pull_request]
jobs:
lint-commits:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.1
with:
# we actually need "github.event.pull_request.commits + 1" commit
fetch-depth: 0
- uses: actions/setup-node@v2.1.0
# or just "yarn" if you depend on "@commitlint/cli" already
- run: yarn add @commitlint/cli
- run: yarn add @commitlint/config-conventional
- run: echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js
- run: yarn run commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD