Skip to content

Commit

Permalink
add workflow to generate README.md
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Hayward <[email protected]>
  • Loading branch information
kd7lxl committed Jul 29, 2021
1 parent 5f3f3e2 commit 82b20f9
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ jobs:
- name: Run chart-testing (lint)
run: ct lint --config ct.yaml

- name: Updated README.md
run: |
make README.md
git diff --exit-code -- README.md
- name: Create kind cluster
uses: helm/[email protected]

Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/readme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Generate README.md

on:
push:
branches-ignore:
- main
- master
paths:
- 'README.md*'
- values.yaml
pull_request:

jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Generate README.md
run: |
make README.md
- name: Commit changes
uses: EndBug/add-and-commit@v7
with:
add: README.md
default_author: github_actions
message: generate README.md
signoff: true
2 changes: 2 additions & 0 deletions README.md.gotmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- README.md is a generated file. Make any changes in README.md.gotmpl or values.yaml. -->

{{ template "chart.header" . }}
{{ template "chart.deprecationWarning" . }}

Expand Down

0 comments on commit 82b20f9

Please sign in to comment.