Skip to content

Commit

Permalink
add workflow to generate README.md (cortexproject#188)
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Hayward <thayward@infoblox.com>

improve CI rules

Signed-off-by: ShuzZzle <niclas.schad@gmail.com>
  • Loading branch information
kd7lxl committed Sep 4, 2021
1 parent 38e56ad commit 6620fde
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ name: Lint and Test Charts

on:
push:
branches:
branches-ignore:
- master
- main
pull_request:
paths-ignore:
- '*.md'
- 'docs/**'
- 'tools/**'

jobs:
lint-test:
Expand Down Expand Up @@ -35,15 +40,10 @@ 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/kind-action@v1.2.0

- name: Run chart-testing (install)
run: |
kubectl create namespace cortex
ct install --config ct.yaml --namespace cortex
ct install --config ct.yaml --namespace cortex
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:
- values.yaml

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

- 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: "[skip ci] generate README.md"
signoff: true

0 comments on commit 6620fde

Please sign in to comment.