File tree 1 file changed +41
-0
lines changed
1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Check Helm Schema (policy-controller only)
2
+
3
+ on :
4
+ pull_request :
5
+ paths :
6
+ - " charts/policy-controller/**"
7
+
8
+ jobs :
9
+ schema :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - name : Checkout repository
14
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15
+
16
+ - name : setup go
17
+ uses : actions/setup-go@v5
18
+ with :
19
+ go-version : ' >=1.23.1'
20
+
21
+ - name : install helm-schema
22
+ run : go install github.com/dadav/helm-schema/cmd/helm-schema@latest
23
+
24
+ - name : test helm-schema
25
+ run : helm-schema --version
26
+
27
+ - name : Run Helm Schema and check the outcome
28
+ run : |
29
+ helm-schema -k additionalProperties,required
30
+ exit_code=$(git diff --exit-code)
31
+ exit ${exit_code}
32
+
33
+ - name : Print a comment in case of failure
34
+ run : |
35
+ echo "The policy controller values.schema.json is not up to date or has not been produced correctly
36
+
37
+ Please, install https://github.com/dadav/helm-schema
38
+ And run with flag -k additionalProperties,required before pushing
39
+ exit 1
40
+ if : |
41
+ failure() && github.event.pull_request.head.repo.full_name == github.repository
You can’t perform that action at this time.
0 commit comments