-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (51 loc) · 1.76 KB
/
readme-metadata.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Check and Update chart README
on:
pull_request:
branches:
- main
- next
paths:
- '*/values.yaml'
push:
branches:
- main
- next
paths:
- '*/values.yaml'
jobs:
check-and-update-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout bitnami-labs/readme-generator-for-helm
uses: actions/checkout@v2
with:
repository: 'bitnami-labs/readme-generator-for-helm'
ref: '1af12881436b1f58f0643d733fd5196b4a11caa8'
path: readme-generator-for-helm
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('readme-generator-for-helm/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
- name: Install readme-generator-for-helm dependencies
run: cd readme-generator-for-helm && npm install
- name: Checkout css-helm-chart
uses: actions/checkout@v2
with:
path: charts
## Can be made to check all charts (generic)
- name: Execute readme-generator-for-helm
run: readme-generator-for-helm/bin/index.js --values charts/community-solid-server/values.yaml --readme charts/community-solid-server/README.md
- name: Commit readme
run: |
cd charts
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
git add community-solid-server/README.md
git commit -am "docs: Update chart parameters readme [skip ci]"
git push