File tree Expand file tree Collapse file tree 2 files changed +44
-1
lines changed
Expand file tree Collapse file tree 2 files changed +44
-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 : Fail if helm-docs changes were needed
35+ if : steps.git_diff.outcome == 'failure'
36+ run : |
37+ echo "::error::helm-docs was not applied or is outdated"
38+ exit 1
39+
40+ - name : Success message
41+ if : steps.git_diff.outcome == 'success'
42+ run : |
43+ 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 :
You can’t perform that action at this time.
0 commit comments