File tree Expand file tree Collapse file tree 2 files changed +50
-1
lines changed Expand file tree Collapse file tree 2 files changed +50
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Check Helm Docs
2
+
3
+ on :
4
+ pull_request :
5
+ paths :
6
+ - ' charts/**' # Only trigger on changes to charts
7
+
8
+ jobs :
9
+ check-helm-docs :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Checkout repository
13
+ uses : actions/checkout@v3
14
+
15
+ - name : Set up Go environment
16
+ uses : actions/setup-go@v4
17
+ with :
18
+ go-version : ' 1.23' # Ensure you have a suitable Go version
19
+
20
+ - name : Install helm-docs
21
+ run : |
22
+ go install github.com/norwoodj/helm-docs/cmd/helm-docs@latest
23
+
24
+ - name : Run helm-docs
25
+ run : |
26
+ helm-docs
27
+
28
+ - name : Check for uncommitted changes
29
+ run : |
30
+ git diff --exit-code
31
+ continue-on-error : true
32
+ id : git_diff
33
+
34
+ - name : Display differences if found
35
+ if : steps.git_diff.outcome == 'failure'
36
+ run : |
37
+ echo "The following changes were detected:"
38
+ git diff
39
+
40
+ - name : Fail if helm-docs changes were needed
41
+ if : steps.git_diff.outcome == 'failure'
42
+ run : |
43
+ echo "::error::helm-docs was not applied or is outdated"
44
+ exit 1
45
+
46
+ - name : Success message
47
+ if : steps.git_diff.outcome == 'success'
48
+ run : |
49
+ echo "helm-docs is up-to-date"
Original file line number Diff line number Diff line change 2
2
apiVersion : v2
3
3
description : balance-checker helm charts
4
4
name : balance-checker
5
- version : 0.0.1
5
+ version : 0.0.3
6
6
appVersion : v0.1.0
7
7
kubeVersion : " >=1.22.0-0"
8
8
maintainers :
You can’t perform that action at this time.
0 commit comments