Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: drivebyer <yang.wu@daocloud.io>
  • Loading branch information
drivebyer committed Sep 12, 2024
1 parent 518fa64 commit 3d930b4
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,23 @@ jobs:
name: Helm Docs Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Render helm docs inside the README.md and push changes back to PR branch
uses: shaybentk/helm-docs-action@v0.0.1
- name: Checkout
uses: actions/checkout@v3
with:
working-dir: charts
git-push: "false"
fail-on-diff: "true"
ref: ${{ github.event.pull_request.head.sha }}

- name: Ensure documentation is updated
uses: docker://jnorwood/helm-docs:latest

- name: Check for changes
run: |
if git diff --exit-code; then
echo -e "\n####### Helm docs are up-to-date! #######\n"
else
git status
echo -e "\n####### Helm docs are not up-to-date! Please run generate helm docs locally and push the changes #######\n"
exit 1
fi
validate_examples:
needs: [gotest, helm_docs_test]
Expand Down

0 comments on commit 3d930b4

Please sign in to comment.