generated from iits-consulting/helm-chart-repo-gh-pages-template
-
Notifications
You must be signed in to change notification settings - Fork 7
35 lines (33 loc) · 1.03 KB
/
update_documentation.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Update helm chart README files
on:
push:
branches:
- "*"
paths:
- 'charts/**/values.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 }}