Skip to content

Commit 041a0fd

Browse files
kd7lxlnschad
authored andcommitted
add workflow to generate README.md
Signed-off-by: Tom Hayward <[email protected]> improve CI rules Signed-off-by: ShuzZzle <[email protected]>
1 parent 38e56ad commit 041a0fd

File tree

2 files changed

+37
-7
lines changed

2 files changed

+37
-7
lines changed

.github/workflows/lint-test.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@ name: Lint and Test Charts
22

33
on:
44
push:
5-
branches:
5+
branches-ignore:
6+
- master
67
- main
78
pull_request:
9+
paths-ignore:
10+
- '*.md'
11+
- 'docs/**'
12+
- 'tools/**'
813

914
jobs:
1015
lint-test:
@@ -35,15 +40,10 @@ jobs:
3540
- name: Run chart-testing (lint)
3641
run: ct lint --config ct.yaml
3742

38-
- name: Updated README.md
39-
run: |
40-
make README.md
41-
git diff --exit-code -- README.md
42-
4343
- name: Create kind cluster
4444
uses: helm/[email protected]
4545

4646
- name: Run chart-testing (install)
4747
run: |
4848
kubectl create namespace cortex
49-
ct install --config ct.yaml --namespace cortex
49+
ct install --config ct.yaml --namespace cortex

.github/workflows/readme.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Generate README.md
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- main
7+
- master
8+
paths:
9+
- values.yaml
10+
11+
jobs:
12+
generate:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Generate README.md
21+
run: |
22+
make README.md
23+
24+
- name: Commit changes
25+
uses: EndBug/add-and-commit@v7
26+
with:
27+
add: README.md
28+
default_author: github_actions
29+
message: "[skip ci] generate README.md"
30+
signoff: true

0 commit comments

Comments
 (0)