From a64a322513c2b7bf9137329524fbe6fddc607632 Mon Sep 17 00:00:00 2001 From: sHa Date: Fri, 20 Mar 2026 16:42:12 +0200 Subject: [PATCH] Fix case sensitivity in appVersion reference in deployment.yaml; add check to skip commit if no changes in build.yml --- .github/workflows/build.yml | 8 ++++++-- helm/templates/deployment.yaml | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4e04812..b921cb8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -65,5 +65,9 @@ jobs: git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" git add helm/Chart.yaml - git commit -m "chore: chart ${{ steps.chart.outputs.version }}, appVersion ${{ steps.tag.outputs.value }} [skip ci]" - git push + if git diff --cached --quiet; then + echo "No changes to commit; skipping commit and push." + else + git commit -m "chore: chart ${{ steps.chart.outputs.version }}, appVersion ${{ steps.tag.outputs.value }} [skip ci]" + git push + fi diff --git a/helm/templates/deployment.yaml b/helm/templates/deployment.yaml index 6e2a55b..134a11f 100644 --- a/helm/templates/deployment.yaml +++ b/helm/templates/deployment.yaml @@ -16,7 +16,7 @@ spec: spec: containers: - name: {{ .Chart.Name }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.appVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: http