From 1d5d637d0b3a7b4d9a499b8600006754b97d7f5c Mon Sep 17 00:00:00 2001 From: robertlincecum Date: Fri, 16 Feb 2024 12:02:12 -0600 Subject: [PATCH] don't install yq if not needed --- .github/workflows/build-deploy-go.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build-deploy-go.yml b/.github/workflows/build-deploy-go.yml index 6ef30bd..0bcc9f5 100644 --- a/.github/workflows/build-deploy-go.yml +++ b/.github/workflows/build-deploy-go.yml @@ -97,6 +97,7 @@ jobs: make --version - name: Install yq + if: ${{ inputs.update_version && inputs.include_chart }} run: sudo snap install yq - name: get Version @@ -109,9 +110,11 @@ jobs: run: ${{ inputs.rails }} - name: Sync Chart.yaml version + if: ${{ inputs.update_version && inputs.include_chart run: yq eval -i ".appVersion=\"${{ env.VERSION }}\"" ./helm/Chart.yaml - name: Sync values.yaml version + if: ${{ inputs.update_version && inputs.include_chart}} run: yq eval -i ".${{ env.CAMEL_CASE_REPO_NAME }}.image.version=\"${{ env.VERSION }}\"" ./helm/values.yaml - name: Install Dependencies @@ -242,6 +245,7 @@ jobs: echo bastion cleaned up - name: Install yq + if: ${{ inputs.update_version && inputs.include_chart }} run: sudo snap install yq - name: Update Version