From 9777a6e6cfbefc8bc20d4b0dd9e9c8b989933f1c Mon Sep 17 00:00:00 2001 From: subochev Date: Tue, 20 May 2025 05:15:00 +0300 Subject: [PATCH] Update action.yml --- helm-publish/action.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/helm-publish/action.yml b/helm-publish/action.yml index bf1bdbb..2cf19f1 100644 --- a/helm-publish/action.yml +++ b/helm-publish/action.yml @@ -27,21 +27,16 @@ runs: - name: Package helm shell: bash run: | - helm package ${{ inputs.chart_directory }} --app-version ${{ inputs.helm_version }} --version ${{ inputs.helm_version }} --dependency-update --destination ${{ inputs.chart_directory }}/result.tgz + helm package ${{ inputs.chart_directory }} --app-version ${{ inputs.helm_version }} --version ${{ inputs.helm_version }} --dependency-update --destination ${{ inputs.chart_directory }}/result + - name: Install yq + uses: mikefarah/yq@master - name: Publishing helm shell: bash env: - HELM_FILE: ${{ inputs.chart_directory }}/result.tgz + HELM_RESULT_FILE: ${{ inputs.chart_directory }}/result run: | - if [ ! -f ./${HELM_FILE} ]; then - echo "File ${HELM_FILE} not found!" - else - echo "File ${HELM_FILE} exist!" - fi - echo 'Files in ${{ inputs.chart_directory }}:' - ls ${{ inputs.chart_directory }} -l echo '!!!!!' - ls ${HELM_FILE} - echo '22222' + yq .name ${HELM_RESULT_FILE} + echo '!!!!!!' echo "File: @${HELM_FILE} to ${{ vars.HELM_REPOSITORY }}/api/charts?force" curl "${{ vars.HELM_REPOSITORY }}/api/charts?force" -d "@${HELM_FILE}" -v