-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (40 loc) · 1.41 KB
/
zz_generated.documentation_validation.yaml
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
40
41
42
43
44
45
# DO NOT EDIT. Generated with:
#
# devctl
#
# https://github.com/giantswarm/devctl/blob/1a381db95a01773e471818a4ce56ad16ad5d6111/pkg/gen/input/workflows/internal/file/cluster_app_documentation_validation.yaml.template
#
# This workflow validates the documentation generated from the JSON schema of the cluster-app
# which is located in `helm/*/values.schema.json`. Specifically, it checks whether the changes
# from `make generate-docs` were committed.
name: Documentation validation
on:
pull_request:
branches:
- master
- main
paths:
- 'helm/**/values.yaml'
- 'helm/**/values.schema.json'
- '**/*.md' # if someone manually edited a file that should contain the generated documentation
push: {}
jobs:
validate:
name: Validate documentation
runs-on: ubuntu-latest
env:
GO_VERSION: 1.21.3
steps:
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: ${{ env.GO_VERSION }}
- name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: "Run 'make generate-docs' and check for differences"
run: |
make generate-docs
if ! git diff --exit-code; then
echo "ERROR: You need to commit the changes made by \"make generate-docs\"."
exit 1
fi