-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (38 loc) · 1.09 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
name: helm docs
on:
pull_request:
branches:
- "master"
jobs:
helm-docs:
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout code
uses: actions/checkout@v3
# Install helm-docs
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.23.4"
- run: |
go install github.com/norwoodj/helm-docs/cmd/helm-docs@latest
export PATH=$PATH:$(go env GOPATH)/bin
# Run helm-docs
- name: Run helm-docs
run: |
cd helm/
helm-docs
# Commit and push changes to the same branch
- name: Commit and push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Configure Git user
git config user.name "GitHub Actions"
git config user.email "[email protected]"
# Add and commit changes
git add helm/README.md
git commit -m "Update helm README" || echo "No changes to commit"
# Push changes back to the same branch
git push origin HEAD