Skip to content

Commit de4df5c

Browse files
feat(action): add optional input for version
1 parent 3a390f4 commit de4df5c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@ inputs:
66
from:
77
description: Lower end of the commit range to lint
88
default: HEAD~1
9+
version:
10+
description: Version of @commitlint/cli
11+
default: latest
912

1013
runs:
1114
using: composite
1215
steps:
1316
- name: Install commitlint
1417
shell: bash
1518
run: |
16-
command -v commitlint || npm install --global commitlint
19+
command -v commitlint || npm install --global commitlint@{{ inputs.version }}
1720
commitlint --version
1821
1922
- name: Check config

0 commit comments

Comments
 (0)