forked from plfiorini/clang-format-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
34 lines (31 loc) · 1.02 KB
/
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
32
33
34
name: "clang-format Check"
description: "Use clang-format to see if your C/C++ code is formatted according to project guidelines."
branding:
icon: "check-circle"
color: "blue"
inputs:
clang-format-version:
description: 'The version of clang-format that you want to use.'
required: false
default: '13'
check-path:
description: 'The path to the directory you want to check for correct C/C++ formatting. Default is the full repository.'
required: false
default: '.'
exclude-regex:
description: 'A regex to exclude files or directories that should not be checked. Default is empty.'
required: false
default: ''
fallback-style:
description: 'The fallback style for clang-format if no .clang-format file exists in your repository.'
required: false
default: 'llvm'
runs:
using: "docker"
image: "Dockerfile"
env:
CLANG_FORMAT_VERSION: ${{ inputs.clang-format-version }}
args:
- ${{ inputs.check-path }}
- ${{ inputs.fallback-style }}
- ${{ inputs.exclude-regex }}