-
Notifications
You must be signed in to change notification settings - Fork 45
39 lines (32 loc) · 933 Bytes
/
helm-docs.yml
File metadata and controls
39 lines (32 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: "Helm Chart Documentation"
on:
pull_request:
branches:
- main
paths:
- 'charts/hcp-terraform-operator/**'
workflow_dispatch:
jobs:
helm-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Setup Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: 'go.mod'
- name: Run Helm documentation generator
run: make helm-docs
- name: Validate changes
run: git diff --exit-code
- name: Uncommited changes
if: ${{ failure() }}
run: |
echo "There are uncommitted changes in Helm Chart Documentation. Please run 'make helm-docs'."
exit 1
- name: Green light
if: ${{ success() }}
run: |
echo "Helm Chart Documentation is up to date."
exit 0