From 57573b7275d2d379d3243360955ecd0105a2d385 Mon Sep 17 00:00:00 2001 From: Ivan Krutov Date: Wed, 20 Dec 2023 17:20:41 +0300 Subject: [PATCH] Default value for build var --- .github/workflows/build.yml | 2 +- .github/workflows/release.yml | 2 +- ci/build.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fb79dba..b624592 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,7 @@ jobs: run: | git fetch --tags export COMMIT=$(git rev-parse --short HEAD) - ci/build.sh $COMMIT ${{ github.event.inputs.regenerateIndex }} unstable + ci/build.sh $COMMIT ${{ github.event.inputs.regenerateIndex != '' && github.event.inputs.regenerateIndex || 'false' }} unstable env: S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }} S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8cfdaa3..241b489 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,7 @@ jobs: run: echo "RELEASE_VERSION=${GITHUB_REF:10}" >> $GITHUB_ENV - name: Build - run: ci/build.sh $RELEASE_VERSION ${{ github.event.inputs.regenerateIndex }} + run: ci/build.sh $RELEASE_VERSION ${{ github.event.inputs.regenerateIndex != '' && github.event.inputs.regenerateIndex || 'false' }} env: S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }} S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }} diff --git a/ci/build.sh b/ci/build.sh index 0ec87b0..32ad5d0 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -33,6 +33,6 @@ if [ -n "$regenerate" ] && [ "$regenerate" = "true" ]; then cp regenerate/index.yaml . rm -Rf "$regenerateDir" else - wget -O index.yaml "$CHARTS_REPO/index.yaml" + wget -O index.yaml "$CHARTS_REPO"index.yaml fi helm repo index . --url "$CHARTS_REPO" --merge index.yaml