-
Notifications
You must be signed in to change notification settings - Fork 3
/
action.yml
31 lines (29 loc) · 873 Bytes
/
action.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
name: "git-clang-format check per commit"
description: "Check each commit for proper format individually and don't allow format fixups"
branding:
icon: 'check-circle'
color: 'blue'
inputs:
target-ref:
description: 'The target ref to find a merge base with'
required: true
source-ref:
description: 'The source ref to check commits from. HEAD if omitted'
required: false
default: HEAD
clang-version:
description: 'The version of clang-format to use (default: latest)'
required: false
fetch-depth:
description: 'Fetch depth for git (default: 50)'
required: false
default: 50
runs:
using: "docker"
image: "docker://ghcr.io/wolletd/clang-format:latest"
env:
FETCH_DEPTH: ${{ inputs.fetch-depth }}
CLANG_VERSION: ${{ inputs.clang-version }}
args:
- ${{ inputs.target-ref }}
- ${{ inputs.source-ref }}