Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new fix #177

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 5 additions & 3 deletions cr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Usage: $(basename "$0") <options>
--skip-upload Skip package upload, just create the release. Not needed in case of OCI upload.
-l, --mark-as-latest Mark the created GitHub release as 'latest' (default: true)
--packages-with-index Upload chart packages directly into publishing branch
-b --skip-packing-option help to install skip packagins
EOF
}

Expand All @@ -48,13 +49,14 @@ main() {
local owner=
local repo=
local install_dir=
local install_only=
local skip_packaing=
local skip_packaging=
local skip_existing=
local skip_upload=
local mark_as_latest=true
local packages_with_index=false
local pages_branch=
local skip_packing_online=

parse_command_line "$@"

Expand Down Expand Up @@ -184,7 +186,7 @@ parse_command_line() {
;;
-i | --install-only)
if [[ -n "${2:-}" ]]; then
install_only="$2"
skip_packaing="$2"
shift
fi
;;
Expand Down Expand Up @@ -244,7 +246,7 @@ parse_command_line() {
install_dir="$RUNNER_TOOL_CACHE/cr/$version/$arch"
fi

if [[ -n "$install_only" ]]; then
if [[ -n "$skip_packaing" ]]; then
echo "Will install cr tool and not run it..."
install_chart_releaser
exit 0
Expand Down