Merge pull request #130 from iits-consulting/chore/argocd-update #277
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 chart README files | |
on: | |
push: | |
branches: | |
- "**" | |
paths: | |
- 'charts/**/values.yaml' | |
- 'charts/**/Chart.yaml' | |
- 'charts/README.md.gotmpl' | |
- '.github/workflows/update_documentation.yaml' | |
jobs: | |
update-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: Setup helm-docs | |
uses: gabe565/setup-helm-docs-action@v1 | |
- name: Update README.md files | |
run: | | |
helm-docs -c charts -l debug -t README.md.gotmpl | |
- name: Commit files | |
shell: "bash {0}" | |
run: | | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git commit -a -m "Auto update of README.md files" || echo "Nothing changed apparently" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} |