-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (43 loc) · 1.59 KB
/
helm-docs.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
46
47
48
name: Auto generate helm-docs
on:
workflow_dispatch:
pull_request:
branches:
- release-v*[0-9].*[0-9].x
- master
paths:
- "chart/**"
- ".github/workflows/helm-docs.yaml"
jobs:
generate-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Generate helm docs
run: |
make docs
- name: Generate crd docs
run: |
sed -i 's/branch_current/${{ github.event.pull_request.head.ref }}/' ./ci/crd-gen.yaml
make crd-gen
git restore ./ci/crd-gen.yaml
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v4
with:
token: "${{ secrets.TH2_NET_CI_PRIVATE_ACTION }}"
commit-message: Update helm and crd docs
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
base: ${{ github.event.pull_request.head.ref }}
branch: helm-and-crd-docs-${{ github.event.pull_request.head.ref }}
milestone: "${{ github.event.pull_request.milestone.title }}"
delete-branch: true
title: "[${{ github.event.pull_request.milestone.title }}][Auto] helm chart and crds readme"
body: "Generating helm chart and crd README"
labels: automated
- name: Check outputs
if: ${{ steps.cpr.outputs.pull-request-number }}
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"