From cc374d77e3431af01d5a7af9a841a2d95dd7708f Mon Sep 17 00:00:00 2001 From: Denis Policastro Date: Tue, 17 Sep 2024 13:14:44 -0300 Subject: [PATCH] feat: update helm-docs workflow --- .github/workflows/helm-docs.yaml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/helm-docs.yaml b/.github/workflows/helm-docs.yaml index 10673721..e0f6b36d 100644 --- a/.github/workflows/helm-docs.yaml +++ b/.github/workflows/helm-docs.yaml @@ -1,26 +1,26 @@ -name: Helm Docs Check +name: Helm Docs on: pull_request jobs: - helm-docs-validation: + helm-docs: runs-on: ubuntu-latest - steps: - name: Checkout repository uses: actions/checkout@v3 + with: + persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token + fetch-depth: 0 - name: Set up Docker uses: docker/setup-buildx-action@v2 - name: Run helm-docs - run: docker run --rm --volume "$(pwd):/helm-docs" -u "$(id -u)" jnorwood/helm-docs:latest + run: docker run --rm --volume "$(pwd):/helm-docs" -u "$(id -u)" jnorwood/helm-docs:v1.14.2 - - name: Check for unstaged changes - run: | - if [ -n "$(git status --porcelain)" ]; then - echo "Unstaged changes detected. Please update the Helm chart documentation in your PR." - exit 1 - else - echo "No unstaged changes detected. Documentation is up-to-date." - fi + - name: Commit & Push changes + uses: actions-js/push@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: ${{ github.event.pull_request.head.ref }} + message: "docs: auto-generate chart docs"