-
-
Notifications
You must be signed in to change notification settings - Fork 24
47 lines (43 loc) · 1.21 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
36
37
38
39
40
41
42
43
44
45
46
47
name: Chart-Preparation
on:
pull_request:
branches: [main]
paths: ["charts/**"]
push:
branches: [main]
paths: ["charts/**"]
workflow_dispatch:
jobs:
pre-commit:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/[email protected]
documentation:
needs:
- pre-commit
runs-on: ubuntu-latest
container: ghcr.io/chgl/kube-powertools:latest
steps:
- name: checkout git repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check if documentation is up-to-date
run: generate-docs.sh && /usr/bin/git diff --exit-code HEAD
changelog:
needs:
- pre-commit
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: Update dependencies
run: find charts/ ! -path charts/ -maxdepth 1 -type d -exec helm dependency update {} \;
# used to test whether the changelog generation process works properly
- name: Generate changelogs
run: bash .github/generate-chart-changelogs.sh