[WIP] Block by Block Synchronous Sate Sync #146
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: Generate helm docs | |
on: | |
pull_request: | |
paths: | |
- "charts/**/README.md.gotmpl" | |
- "charts/**/values.yaml" | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: Install helm-docs | |
uses: envoy/[email protected] | |
with: | |
# Helm Docs Version to install (Mandatory) | |
version: 1.11.0 | |
- name: Generate helm docs | |
run: helm-docs --chart-search-root=charts | |
- run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
if [[ -n $(git status --porcelain) ]]; then | |
git add . | |
git commit -m "add generated helm docs" | |
git push | |
else | |
echo "No changes detected, skipping commit and push." | |
fi |