Skip to content

Commit

Permalink
fix packages_with_index flag (#172)
Browse files Browse the repository at this point in the history
Signed-off-by: cpanato <ctadeu@gmail.com>
  • Loading branch information
cpanato authored Oct 31, 2023
1 parent ed43eb3 commit d17b190
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions cr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit d17b190

Please sign in to comment.