diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml index 2324f31d..b13f3188 100644 --- a/.github/workflows/lint-test.yml +++ b/.github/workflows/lint-test.yml @@ -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/kind-action@v1.2.0 diff --git a/.github/workflows/readme.yml b/.github/workflows/readme.yml new file mode 100644 index 00000000..3ac0bf90 --- /dev/null +++ b/.github/workflows/readme.yml @@ -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