-
Notifications
You must be signed in to change notification settings - Fork 35
35 lines (35 loc) · 1.1 KB
/
documentation.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
name: Update Documentation
on:
push:
paths:
- '**/defaults/main.yaml'
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}
defaults:
run:
shell: bash
jobs:
build:
name: Build Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Install Package
env:
HELM_DOCS_URL: https://github.com/norwoodj/helm-docs/releases/download
HELM_DOCS_VERSION: 1.14.2
run: |
sudo wget -qP /tmp $HELM_DOCS_URL/v${HELM_DOCS_VERSION}/helm-docs_${HELM_DOCS_VERSION}_Linux_x86_64.deb
sudo apt-get -y install /tmp/helm-docs_${HELM_DOCS_VERSION}_Linux_x86_64.deb
- name: Refresh Documentation
run: helm-docs
- name: Update Documentation
run: |
git config user.email '${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com'
git config user.name '${{ github.actor }}'
git commit -am 'Workflow: Update documentation'
git push origin ${{ github.ref_name }}
permissions:
contents: write