Skip to content

Commit

Permalink
darwin action
Browse files Browse the repository at this point in the history
  • Loading branch information
bakito committed Jan 28, 2025
1 parent f6be4ff commit 37d2f81
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/darwin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Darwin
on:
push:
branches:
- darwin

jobs:
helm:
name: Darwin Checks
runs-on: macos-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install Helm
run: |
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"

- name: Set up Tools
run: make helm-docs
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ helm-docs: tb.helm-docs update-chart-version
@$(TB_HELM_DOCS)

update-chart-version: tb.semver
$(TB_SEMVER) -next
@version=$$($(TB_SEMVER) -next); \
versionNum=$$($(TB_SEMVER) -next -numeric); \
sed -i "s/^version:.*$$/version: $${versionNum}/" ./chart/Chart.yaml; \
sed -i "s/^appVersion:.*$$/appVersion: $${version}/" ./chart/Chart.yaml
sed -i "" "s/^version:.*$$/version: $${versionNum}/" ./chart/Chart.yaml; \
sed -i "" "s/^appVersion:.*$$/appVersion: $${version}/" ./chart/Chart.yaml

helm-lint: helm-docs
helm lint ./chart
Expand Down

0 comments on commit 37d2f81

Please sign in to comment.