fix packages_with_index flag (#172)
Signed-off-by: cpanato <ctadeu@gmail.com>
This commit is contained in:
@@ -35,6 +35,7 @@ inputs:
|
|||||||
packages_with_index:
|
packages_with_index:
|
||||||
description: "Upload chart packages directly into publishing branch"
|
description: "Upload chart packages directly into publishing branch"
|
||||||
required: false
|
required: false
|
||||||
|
default: false
|
||||||
pages_branch:
|
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)"
|
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
|
required: false
|
||||||
|
|||||||
@@ -311,7 +311,7 @@ release_charts() {
|
|||||||
if [[ -n "$config" ]]; then
|
if [[ -n "$config" ]]; then
|
||||||
args+=(--config "$config")
|
args+=(--config "$config")
|
||||||
fi
|
fi
|
||||||
if [[ -n "$packages_with_index" ]]; then
|
if [[ "$packages_with_index" = true ]]; then
|
||||||
args+=(--packages-with-index --push --skip-existing)
|
args+=(--packages-with-index --push --skip-existing)
|
||||||
elif [[ -n "$skip_existing" ]]; then
|
elif [[ -n "$skip_existing" ]]; then
|
||||||
args+=(--skip-existing)
|
args+=(--skip-existing)
|
||||||
@@ -332,7 +332,7 @@ update_index() {
|
|||||||
if [[ -n "$config" ]]; then
|
if [[ -n "$config" ]]; then
|
||||||
args+=(--config "$config")
|
args+=(--config "$config")
|
||||||
fi
|
fi
|
||||||
if [[ -n "$packages_with_index" ]]; then
|
if [[ "$packages_with_index" = true ]]; then
|
||||||
args+=(--packages-with-index --index-path .)
|
args+=(--packages-with-index --index-path .)
|
||||||
fi
|
fi
|
||||||
if [[ -n "$pages_branch" ]]; then
|
if [[ -n "$pages_branch" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user