Skip to content

Commit

Permalink
fix helm doc commit (#46)
Browse files Browse the repository at this point in the history
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 <mimason@equinix.com>
  • Loading branch information
mikemrm authored May 6, 2024
1 parent c802a21 commit b8b4ffa
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 21 deletions.
22 changes: 3 additions & 19 deletions .github/workflows/helm.yml → .github/workflows/helm-docs.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
20 changes: 20 additions & 0 deletions .github/workflows/helm-lint.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 0 additions & 2 deletions chart/iam-runtime-infratographer/README.md.gotmpl
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit b8b4ffa

Please sign in to comment.