Skip to content

Commit

Permalink
Switching Workflow to generate ourselves
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcollom committed Nov 17, 2023
1 parent 157a7d8 commit 62eb286
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions .github/workflows/helm-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ jobs:
- run: helm lint deploy/charts/version-checker

docs:
name: Generate Helm Docs
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -38,14 +41,31 @@ jobs:
filters: |
values:
- 'deploy/charts/version-checker/values.yaml'
# Only run if the values.yaml file has changed.
- name: Render helm docs inside the README.md and push changes back to PR branch
- name: Install Helm Docs
if: steps.filter.outputs.values == 'true'
uses: shaybentk/helm-docs-action@v0.0.1
uses: envoy/install-helm-docs@v1.0.0
with:
working-dir: deploy/charts/version-checker
git-push: "true"
version: 1.11.0
- name: Update Helm Docs
run: |
set -ex
cd deploy/charts/version-checker
helm-docs
- uses: dorny/paths-filter@v2
id: filter-readme
with:
filters: |
readme:
- 'deploy/charts/version-checker/README.md'
- name: Commit Helm Docs
if: steps.filter-readme.outputs.readme == 'true'
run: |
set -ex
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add deploy/charts/version-checker
git commit -m "[HELM] Update helm docs"
git push
test:
Expand Down

0 comments on commit 62eb286

Please sign in to comment.