diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9782374..00c24a2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -9,7 +9,25 @@ on: - 'charts/*/*.yaml' jobs: + update-readme: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Run helm-docs + run: | + GOBIN=$PWD go install github.com/norwoodj/helm-docs/cmd/helm-docs@v1.14.2 + ./helm-docs --sort-values-order file + rm helm-docs + + - name: Commit bump + uses: EndBug/add-and-commit@v9 + with: + branch: main + message: 'Regenerate chart README.md' + release: + needs: update-readme permissions: contents: write runs-on: ubuntu-latest diff --git a/.github/workflows/update_docs.yaml b/.github/workflows/update_docs.yaml deleted file mode 100644 index 8f92fff..0000000 --- a/.github/workflows/update_docs.yaml +++ /dev/null @@ -1,27 +0,0 @@ -name: Update docs - -on: - push: - branches: - - main - paths: - - 'charts/*/values.yaml' - - 'charts/*/Chart.yaml' - -jobs: - update-readme: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Run helm-docs - run: | - GOBIN=$PWD go install github.com/norwoodj/helm-docs/cmd/helm-docs@v1.11.0 - ./helm-docs --sort-values-order file - rm helm-docs - - - name: Commit bump - uses: EndBug/add-and-commit@v9 - with: - branch: ${{ github.event.pull_request.base.ref }} - message: 'Regenerate chart README.md'