-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 1 KB
/
task-lint-commit.yaml
File metadata and controls
37 lines (32 loc) · 1 KB
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
35
36
37
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/refs/heads/master/src/schemas/json/github-workflow.json
name: Task - Lint Commit Message
on:
workflow_dispatch:
workflow_call:
inputs:
node-version:
description: Node version to use for testing
required: true
type: string
commit:
description: Commit message to lint
required: true
type: string
jobs:
lint-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ inputs.node-version }}
- name: Install commitlint
run: |
npm install conventional-changelog-conventionalcommits
npm install commitlint@latest
npm install @commitlint/config-conventional
- name: Run commitlint
run: |
echo "${{ inputs.commit }}" | npx commitlint --verbose