diff --git a/.github/workflows/tools-release.yaml b/.github/workflows/tools-release.yaml index 967e678..0556457 100644 --- a/.github/workflows/tools-release.yaml +++ b/.github/workflows/tools-release.yaml @@ -62,7 +62,11 @@ jobs: if: ${{ !inputs.gitRepo }} id: download_charts run: | - helm repo add ${{ inputs.repoName }} ${{ inputs.repoURL }} + if [ -z "${{ inputs.tokenSecret }}" ]; then + helm repo add ${{ inputs.repoName }} ${{ inputs.repoURL }} + else + helm repo add ${{ inputs.repoName }} ${{ inputs.repoURL }} --username "${{ env.GH_TOKEN }}" --password "${{ env.GH_TOKEN }}" + fi helm repo update helm pull ${{ inputs.repoName }}/${{ inputs.chartName }} --version ${{ inputs.chartVersion }} mkdir -p build/${{ inputs.repoName }}