-
Notifications
You must be signed in to change notification settings - Fork 27
41 lines (34 loc) · 1.08 KB
/
update-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
name: Update Documentation
on:
workflow_dispatch:
workflow_run:
workflows:
- "chart-publish"
types:
- completed
permissions: read-all
jobs:
documentation-update:
runs-on: ubuntu-latest
if: ${{github.event.workflow_run.conclusion == 'success'}}
env:
HELM_DOCS_VERSION: '1.12.0'
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install helm-docs
run: |
cd /tmp
wget https://github.com/norwoodj/helm-docs/releases/download/v${{env.HELM_DOCS_VERSION}}/helm-docs_${{env.HELM_DOCS_VERSION}}_Linux_x86_64.tar.gz
tar -xvf helm-docs_${{env.HELM_DOCS_VERSION}}_Linux_x86_64.tar.gz
sudo mv helm-docs /usr/local/sbin
- name: Run helm-docs
run: |
helm-docs -t README.md.gotmpl -o README.md -b for-the-badge
- name: Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add charts/node-red/README.md
git commit -m "Update documentation via helm-docs"
git push