-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 942 Bytes
/
commitlint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Lint commit messages
on:
push:
branches:
- main
- "renovate/**"
pull_request:
branches:
- main
jobs:
pre_job:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
concurrent_skipping: same_content
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'
skip_after_successful_duplicate: true
commitlint:
runs-on: ubuntu-latest
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
with:
fetch-depth: 0
# Workaround, see https://github.com/wagoid/commitlint-github-action/issues/560#issuecomment-1277659864
- run: rm tsconfig.json
- uses: wagoid/commitlint-github-action@v5