-
Notifications
You must be signed in to change notification settings - Fork 36
32 lines (30 loc) · 880 Bytes
/
commitlint.yml
File metadata and controls
32 lines (30 loc) · 880 Bytes
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
name: Lint Commit Messages
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
# See: https://github.community/t/duplicate-checks-on-push-and-pull-request-simultaneous-event/18012
push:
branches:
- main
- gh-pages
pull_request:
branches:
- main
- gh-pages
workflow_dispatch:
inputs:
pr_number:
description: "PR number to test (for fork PRs)"
required: true
type: string
permissions:
contents: read
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
ref: ${{ inputs.pr_number && format('refs/pull/{0}/head', inputs.pr_number) || '' }}
fetch-depth: 0
- uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed # v6.2.1