Skip to content

Commit 9009b8f

Browse files
committed
ci: adds pre-commit hook
1 parent b81dec9 commit 9009b8f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ repos:
4545
language: system
4646
files: "^(hack/addons/|charts/cluster-api-runtime-extensions-nutanix/templates/.+/manifests/|make/addons.mk$)"
4747
pass_filenames: false
48+
- id: sync-helm-charts
49+
name: helm-charts-sync
50+
entry: make sync-helm-values
51+
language: system
52+
files: "^(hack/addons/|charts/cluster-api-runtime-extensions-nutanix/$).*"
53+
pass_filenames: false
4854
- id: addons-repo-yaml
4955
name: addons-repo-yaml
5056
entry: make template-helm-repository
@@ -70,7 +76,7 @@ repos:
7076
- id: check-yaml
7177
args: ["-m", "--unsafe"]
7278
stages: [commit]
73-
exclude: ^charts/[^/]+/addons/.*|charts/[^/]+/templates/.*|hack/addons/.+/*.yaml$
79+
exclude: ^charts/[^/]+/addons/.|charts/[^/]+/templates/.|hack/addons/.+/.yaml$
7480
- id: mixed-line-ending
7581
args: ["-f", "lf"]
7682
exclude: \.bat$

0 commit comments

Comments
 (0)