-
Notifications
You must be signed in to change notification settings - Fork 94
38 lines (36 loc) · 1.31 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
name: Helm docs
on:
push:
branches:
- 'master'
paths:
- 'chart/k8gb/**'
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
jobs:
build-helm-doc:
permissions:
contents: write # for peter-evans/create-pull-request to create branch
pull-requests: write # for peter-evans/create-pull-request to create a PR
name: Update Helm Doc
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- name: Checkout Code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Generate docs for helm chart - chart/k8gb/README.md
uses: docker://jnorwood/helm-docs@sha256:7e562b49ab6b1dbc50c3da8f2dd6ffa8a5c6bba327b1c6335cc15ce29267979c
with:
args: --template-files=_helm-docs-template.gotmpl
- name: Create Pull Request
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
with:
title: "Update Helm Docs"
branch: ci-helm-doc
delete-branch: true
base: master
signoff: true
token: ${{ secrets.GITHUB_TOKEN }}