Skip to content

Commit

Permalink
Create helm-docs.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Venkat <[email protected]>
  • Loading branch information
venkatamutyala authored Oct 2, 2024
1 parent 49572d9 commit 5a4c1b4
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/helm-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Publish Development Helm Charts

on:
push:



jobs:
publish:
runs-on: ubuntu-22.04
environment: ${{ inputs.GLUEOPS_ENV }}
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4

- name: Install Helm Docs
uses: envoy/install-helm-docs@05313083ef2cfaea27c4c3d7cb725242d22ea88b # v1.0.0
with:
version: 1.12.0

- name: Generate and Commit helm-docs
run: |
echo '{{ template "chart.header" . }}
{{ template "chart.deprecationWarning" . }}
{{ template "chart.badgesSection" . }}
{{ template "chart.description" . }}
{{ template "chart.homepageLine" . }}
{{ template "chart.maintainersSection" . }}
{{ template "chart.sourcesSection" . }}
{{ template "chart.requirementsSection" . }}
{{ template "chart.valuesSection" . }}' > README.md.gotmpl
helm-docs -t README.md.gotmpl
git config --global user.email "[email protected]"
git config --global user.name "onetimesecret"
if [ -n "$(git status --porcelain)" ]; then
git add -A
git commit -m "docs: automated helm-docs action"
git push
else
echo "No changes detected. Nothing to commit."
fi

0 comments on commit 5a4c1b4

Please sign in to comment.