File tree Expand file tree Collapse file tree 3 files changed +51
-2
lines changed
Expand file tree Collapse file tree 3 files changed +51
-2
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@1.14.2
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 --ignore-all-space
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 --ignore-all-space
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 22apiVersion : v2
33description : balance-checker helm charts
44name : balance-checker
5- version : 0.0.1
5+ version : 0.0.3
66appVersion : v0.1.0
77kubeVersion : " >=1.22.0-0"
88maintainers :
Original file line number Diff line number Diff line change 11# balance-checker
22
3- ![ Version: 0.0.1 ] ( https://img.shields.io/badge/Version-0.0.1 -informational?style=flat-square ) ![ AppVersion: v0.1.0] ( https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square )
3+ ![ Version: 0.0.3 ] ( https://img.shields.io/badge/Version-0.0.3 -informational?style=flat-square ) ![ AppVersion: v0.1.0] ( https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square )
44
55balance-checker helm charts
66
You can’t perform that action at this time.
0 commit comments