diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 5b19118..a2fda26 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -65,13 +65,14 @@ jobs: token: ${{ secrets.TOKEN }} github-server-url: ${{ inputs.server-url }} - - name: Update Helm chart version - if: ${{ inputs.update-helm == 'true' }} - run: yq e '${{ inputs.helm-path }} = "${{ inputs.helm-version }}"' -i "${{ inputs.file-path }}" - - - name: Update image tag - if: ${{ inputs.update-image == 'true' }} - run: yq e '${{ inputs.image-path }} = "${{ inputs.image-version }}"' -i "${{ inputs.file-path }}" + - name: Update values + run: | + if [ "${{ inputs.update-helm }}" = "true" ]; then + yq e '${{ inputs.helm-path }} = "${{ inputs.helm-version }}"' -i "${{ inputs.file-path }}" + fi + if [ "${{ inputs.update-image }}" = "true" ]; then + yq e '${{ inputs.image-path }} = "${{ inputs.image-version }}"' -i "${{ inputs.file-path }}" + fi - name: Commit and push changes run: |