Skip to content

fix(v2beta1): fix helm webhook template error #779

fix(v2beta1): fix helm webhook template error

fix(v2beta1): fix helm webhook template error #779

Workflow file for this run

name: Check Helm Version
on:
push:
paths:
- deploy/charts/emqx-operator/templates/**
pull_request:
paths:
- deploy/charts/emqx-operator/templates/**
jobs:
check-helm-version:
runs-on: ubuntu-latest
steps:
- run: minikube start
- uses: actions/checkout@v3
- name: Update helm
run: |
helm repo add emqx https://repos.emqx.io/charts
helm repo update
- name: Check helm version
run: |
old=$(helm show chart emqx/emqx-operator |egrep "^version" | sed -r 's|^version:[[:space:]]([0-9]+.[0-9]+.[0-9]+)$|\1|g')
now=$(egrep "^version" deploy/charts/emqx-operator/Chart.yaml | sed -r 's|^version:[[:space:]]([0-9]+.[0-9]+.[0-9]+)$|\1|g')
if [ "$old" = "$now" ];then
echo "Need update version for Chart.yaml"
exit 1
fi