Merge pull request #166 from JeffMboya/SMQ-38 #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) Abstract Machines | |
# SPDX-License-Identifier: Apache-2.0 | |
name: Generate Helm Docs | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
generate-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{ github.repository }} | |
ref: ${{ github.ref }} | |
fetch-depth: 0 | |
- name: Generate Helm Docs | |
id: helm-docs | |
uses: losisin/[email protected] | |
with: | |
chart-search-root: "charts/supermq" | |
values-file: "values.yaml" | |
output-file: "README.md" | |
template-files: "README.md.gotmpl" | |
git-push: false | |
fail-on-diff: true | |
- name: Show README diff | |
if: failure() && steps.helm-docs.outcome == 'failure' | |
run: git diff charts/supermq/README.md || echo "No git diff available." |