From b8b4ffa6b5f86641cdfa515baaeba9758f693d68 Mon Sep 17 00:00:00 2001 From: Mike Mason Date: Mon, 6 May 2024 13:39:40 -0500 Subject: [PATCH] fix helm doc commit (#46) Only run on main branch to resolve issues with forks. Run dirty check to ensure empty commits aren't attempted resulting in failures. Remove versions from template as they're never updated before tagging. Signed-off-by: Mike Mason --- .github/workflows/{helm.yml => helm-docs.yml} | 22 +++---------------- .github/workflows/helm-lint.yml | 20 +++++++++++++++++ .../README.md.gotmpl | 2 -- 3 files changed, 23 insertions(+), 21 deletions(-) rename .github/workflows/{helm.yml => helm-docs.yml} (60%) create mode 100644 .github/workflows/helm-lint.yml diff --git a/.github/workflows/helm.yml b/.github/workflows/helm-docs.yml similarity index 60% rename from .github/workflows/helm.yml rename to .github/workflows/helm-docs.yml index 2b23af67..580f9ca7 100644 --- a/.github/workflows/helm.yml +++ b/.github/workflows/helm-docs.yml @@ -1,25 +1,10 @@ -name: Helm lint and docs +name: Helm docs on: push: - pull_request: + branches: + - main jobs: - helm-lint: - name: lint - runs-on: ubuntu-latest - permissions: - contents: read - pull-requests: read - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Setup Helm - uses: azure/setup-helm@v3.5 - - - name: Run helm lint - run: helm lint chart/iam-runtime-infratographer helm-docs: - needs: helm-lint runs-on: ubuntu-latest permissions: contents: write @@ -43,6 +28,5 @@ jobs: commit_message: Helm docs updated commit_options: '--no-verify --signoff' file_pattern: 'chart/*/*.md' - skip_dirty_check: true skip_fetch: true skip_checkout: true diff --git a/.github/workflows/helm-lint.yml b/.github/workflows/helm-lint.yml new file mode 100644 index 00000000..49b5cb43 --- /dev/null +++ b/.github/workflows/helm-lint.yml @@ -0,0 +1,20 @@ +name: Helm lint +on: + push: + pull_request: +jobs: + helm-lint: + name: lint + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: read + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Helm + uses: azure/setup-helm@v3.5 + + - name: Run helm lint + run: helm lint chart/iam-runtime-infratographer diff --git a/chart/iam-runtime-infratographer/README.md.gotmpl b/chart/iam-runtime-infratographer/README.md.gotmpl index 8cb986e4..78a6cb9f 100644 --- a/chart/iam-runtime-infratographer/README.md.gotmpl +++ b/chart/iam-runtime-infratographer/README.md.gotmpl @@ -1,8 +1,6 @@ {{ template "chart.header" . }} {{ template "chart.description" . }} -{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }} - ## Example deployment Helm chart repository: https://infratographer.github.io/charts