From d17b1907017ff7c811322eaba531f2bf1edca06d Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Tue, 31 Oct 2023 08:21:00 +0100 Subject: [PATCH] fix packages_with_index flag (#172) Signed-off-by: cpanato --- action.yml | 1 + cr.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index ade9f00..c6fda63 100644 --- a/action.yml +++ b/action.yml @@ -35,6 +35,7 @@ inputs: packages_with_index: description: "Upload chart packages directly into publishing branch" required: false + default: false pages_branch: description: "Name of the branch to be used to push the index and artifacts. (default to: gh-pages but it is not set in the action it is a default value for the chart-releaser binary)" required: false diff --git a/cr.sh b/cr.sh index 3a6f990..4f9ecc2 100755 --- a/cr.sh +++ b/cr.sh @@ -311,7 +311,7 @@ release_charts() { if [[ -n "$config" ]]; then args+=(--config "$config") fi - if [[ -n "$packages_with_index" ]]; then + if [[ "$packages_with_index" = true ]]; then args+=(--packages-with-index --push --skip-existing) elif [[ -n "$skip_existing" ]]; then args+=(--skip-existing) @@ -332,7 +332,7 @@ update_index() { if [[ -n "$config" ]]; then args+=(--config "$config") fi - if [[ -n "$packages_with_index" ]]; then + if [[ "$packages_with_index" = true ]]; then args+=(--packages-with-index --index-path .) fi if [[ -n "$pages_branch" ]]; then