From 4c89f91557be808fca72e4a934fbf4987214e70a Mon Sep 17 00:00:00 2001 From: sd109 Date: Wed, 4 Sep 2024 10:27:01 +0100 Subject: [PATCH] Add debugging statements --- .github/workflows/helm-build-push.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/helm-build-push.yml b/.github/workflows/helm-build-push.yml index c4ff888dd1b..65ca32ccf8b 100644 --- a/.github/workflows/helm-build-push.yml +++ b/.github/workflows/helm-build-push.yml @@ -2,8 +2,6 @@ name: Publish Danswer Helm Chart on: push: - branches: - - "*" workflow_dispatch: jobs: @@ -13,14 +11,18 @@ jobs: version_changed: ${{ steps.version_check.outputs.chart_version_changed }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Check for Helm chart version bump id: version_check run: | + set -xe + git log -n3 + git diff HEAD~1 deployment/helm/Chart.yaml changed=$(git diff HEAD~1 deployment/helm/Chart.yaml | grep --silent "^+version: " && echo true) + echo $changed echo chart_version_changed=$changed >> $GITHUB_OUTPUTS release: @@ -33,7 +35,7 @@ jobs: if: ${{ needs.check_for_helm_chart_version_change.outputs.version_changed == 'true' }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0