-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 961 Bytes
/
helm-docs.yml
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
name: Helm docs
on:
pull_request:
push:
branches:
- main
jobs:
build:
permissions:
contents: write # for git push
name: Lint Code Base
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Fetch history
run: git fetch --prune --unshallow
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Check Docs
run: |
docker run --rm --pull always --volume "$(pwd):/helm-docs" -u "$(id -u)" jnorwood/helm-docs:latest
if ! git diff --exit-code; then
echo "Documentation was not up to date. Adding changes for helm-docs and commited/pushed changes!" >&2
find . -name '*.md' | xargs git add
git commit --signoff -m "Sync README from main"
git push
fi