Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add workflow to generate README.md #188

Merged
merged 1 commit into from
Sep 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should fix our infinite-loop problem @kd7lxl

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

signoff: true