Skip to content

Commit af02b14

Browse files
committed
Switching Workflow to generate ourselves
1 parent 157a7d8 commit af02b14

File tree

1 file changed

+29
-7
lines changed

1 file changed

+29
-7
lines changed

.github/workflows/helm-test.yaml

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,47 @@ jobs:
2727
- run: helm lint deploy/charts/version-checker
2828

2929
docs:
30+
name: Generate Helm Docs
3031
runs-on: ubuntu-latest
32+
permissions:
33+
contents: write
3134
steps:
3235
- uses: actions/checkout@v3
3336
with:
3437
ref: ${{ github.event.pull_request.head.ref }}
35-
- uses: dorny/paths-filter@v2
38+
- name: Check for values.yaml changes
39+
uses: dorny/paths-filter@v2
3640
id: filter
3741
with:
3842
filters: |
3943
values:
4044
- 'deploy/charts/version-checker/values.yaml'
41-
42-
# Only run if the values.yaml file has changed.
43-
- name: Render helm docs inside the README.md and push changes back to PR branch
45+
- name: Install Helm Docs
4446
if: steps.filter.outputs.values == 'true'
45-
uses: shaybentk/helm-docs-action@v0.0.1
47+
uses: envoy/install-helm-docs@v1.0.0
4648
with:
47-
working-dir: deploy/charts/version-checker
48-
git-push: "true"
49+
version: 1.11.0
50+
- name: Update Helm Docs
51+
run: |
52+
set -ex
53+
cd deploy/charts/version-checker
54+
helm-docs
55+
- name: Check for README.md changes
56+
uses: dorny/paths-filter@v2
57+
id: filter-readme
58+
with:
59+
filters: |
60+
readme:
61+
- 'deploy/charts/version-checker/README.md'
62+
- name: Commit Helm Docs
63+
if: steps.filter-readme.outputs.readme == 'true'
64+
run: |
65+
set -ex
66+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
67+
git config --local user.name "github-actions[bot]"
68+
git add deploy/charts/version-checker
69+
git commit -m "[HELM] Update helm docs"
70+
git push
4971
5072
5173
test:

0 commit comments

Comments
 (0)