-
-
Notifications
You must be signed in to change notification settings - Fork 24
35 lines (32 loc) · 1.06 KB
/
prepare.yml
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
name: Chart-Preparation
on:
workflow_run:
workflows: ["Chart-Testing"]
branches: [main]
types: [completed]
jobs:
readme:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
container: ghcr.io/chgl/kube-powertools:latest
steps:
- name: checkout git repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Check if documentation is up-to-date
run: generate-docs.sh && git diff --exit-code HEAD
- name: Update dependencies
run: find charts/ ! -path charts/ -maxdepth 1 -type d -exec helm dependency update {} \;
- name: Generate changelogs
run: generate-chart-changelogs.sh
- name: Check readme
shell: bash
run: |
set -euo pipefail
docker run --rm --volume "$(pwd):/helm-docs" -u "$(id -u)" jnorwood/helm-docs:latest
if ! git diff --exit-code
then
echo "Documentation not up to date. Please run helm-docs and commit changes!" >&2
exit 1
fi