Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit 617a314

Browse files
committed
Add github action to automatically update and commit helm-docs
1 parent 4231095 commit 617a314

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/helm-docs.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: "Update Helm Docs"
2+
3+
on:
4+
pull_request:
5+
push:
6+
7+
jobs:
8+
helm-docs:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
ref: ${{ github.head_ref }}
15+
16+
- name: Download Helm Docs
17+
run: |
18+
mkdir helm-docs
19+
cd helm-docs
20+
21+
wget -o https://github.com/norwoodj/helm-docs/releases/download/v0.15.0/helm-docs_0.15.0_Linux_x86_64.tar.gz
22+
tar -xvf helm-docs.tar.gz
23+
# Verify install
24+
./helm-docs --version
25+
26+
- name: Generate Helm Docs
27+
run: |
28+
./helm-docs/helm-docs
29+
# Remove helm-docs download to ensure they dont get commited back
30+
rm -rf helm-docs
31+
- uses: stefanzweifel/git-auto-commit-action@v4.5.1
32+
with:
33+
commit_message: Updating Helm Docs
34+
file_pattern: "*/README.md"

0 commit comments

Comments
 (0)