-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (57 loc) · 1.67 KB
/
helm-docs.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Helm Docs Update
on:
pull_request:
branches:
- main
paths:
- "charts/**"
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
helm-docs:
name: Helm Docs Update
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Generate GitHub app token
id: github-app-token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.GH_CONTENT_APP_ID }}
private_key: ${{ secrets.GH_CONTENT_APP_PEM_FILE }}
- name: Setup helm-docs
uses: action-stars/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
owner: norwoodj
repository: helm-docs
os_linux: Linux
arch_amd64: x86_64
check_command: helm-docs --version
version: latest
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ steps.github-app-token.outputs.token }}
- name: Run helm-docs
run: |
make docs
- name: Commit and Push
env:
GH_USER_NAME: mcwarman[bot]
GH_USER_EMAIL: 137313888+mcwarman[bot]@users.noreply.github.com
run: |
shopt -s globstar
for file in charts/**/README.md; do
git add -- "$file"
done
if [ -n "$(git diff --staged)" ]; then
git config user.name "${GH_USER_NAME}"
git config user.email "${GH_USER_EMAIL}"
git commit --fixup HEAD -m "docs: helm-docs"
git push
fi