Merge pull request #20 from onetimesecret/feat-bump-app-version-from-… #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Helm Docs | |
on: | |
push: | |
jobs: | |
publish: | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # 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 "github@onetimesecret.com" | |
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 |