Skip to content

Commit

Permalink
don't install yq if not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlincecum committed Feb 16, 2024
1 parent adc27c7 commit 1d5d637
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-deploy-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1d5d637

Please sign in to comment.