-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
37 lines (36 loc) · 901 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
32
33
34
35
36
37
name: "cmake-format lint"
author: "Genci Berisha (neg-c)"
description: "Github Action that check if code is formatted correctly using cmake-format"
branding:
icon: "align-left"
color: "orange"
inputs:
source:
description: "Source file/folder to check formatting or directoryPath"
required: false
default: "."
exclude:
description: "Folders to exclude from formatting check"
required: false
default: "none"
config:
description: "Use .cmake-format style"
required: false
default: False
inplace:
description: "Just fix files (`cmake-format -i`) instead of returning a diff"
required: false
default: False
runs:
using: "docker"
image: "Dockerfile"
args:
- --inplace
- ${{ inputs.inplace }}
- --config
- ${{ inputs.config }}
- --exclude
- ${{ inputs.exclude }}
- --color
- always
- ${{ inputs.source }}