Remove deprecated charts-repo-url option (#123)

* Remove deprecated charts-repo-url option

Signed-off-by: James Tanner-McLeod <james.tanner@tanndev.com>

* empty commit to trigger ci

Signed-off-by: David J. M. Karlsen <david@davidkarlsen.com>

Signed-off-by: James Tanner-McLeod <james.tanner@tanndev.com>
Signed-off-by: David J. M. Karlsen <david@davidkarlsen.com>
Co-authored-by: David J. M. Karlsen <david@davidkarlsen.com>
This commit is contained in:
James Tanner-McLeod
2022-11-30 18:41:42 +01:00
committed by GitHub
co-authored by David J. M. Karlsen
parent 38cfeacdbb
commit 89fff88708
2 changed files with 1 additions and 24 deletions
-7
View File
@@ -16,9 +16,6 @@ inputs:
description: The charts directory description: The charts directory
required: false required: false
default: charts default: charts
charts_repo_url:
description: "The GitHub Pages URL to the charts repo (default: https://<owner>.github.io/<repo>)"
required: false
install_dir: install_dir:
description: "Where to install the cr tool" description: "Where to install the cr tool"
required: false required: false
@@ -47,10 +44,6 @@ runs:
args+=(--config "${{ inputs.config }}") args+=(--config "${{ inputs.config }}")
fi fi
if [[ -n "${{ inputs.charts_repo_url }}" ]]; then
args+=(--charts-repo-url "${{ inputs.charts_repo_url }}")
fi
if [[ -z "${{ inputs.install_dir }}" ]]; then if [[ -z "${{ inputs.install_dir }}" ]]; then
install="$RUNNER_TOOL_CACHE/cr/${{ inputs.version }}/$(uname -m)" install="$RUNNER_TOOL_CACHE/cr/${{ inputs.version }}/$(uname -m)"
echo "$install" >> "$GITHUB_PATH" echo "$install" >> "$GITHUB_PATH"
+1 -17
View File
@@ -28,7 +28,6 @@ Usage: $(basename "$0") <options>
-v, --version The chart-releaser version to use (default: $DEFAULT_CHART_RELEASER_VERSION)" -v, --version The chart-releaser version to use (default: $DEFAULT_CHART_RELEASER_VERSION)"
--config The path to the chart-releaser config file --config The path to the chart-releaser config file
-d, --charts-dir The charts directory (default: charts) -d, --charts-dir The charts directory (default: charts)
-u, --charts-repo-url The GitHub Pages URL to the charts repo (default: https://<owner>.github.io/<repo>)
-o, --owner The repo owner -o, --owner The repo owner
-r, --repo The repo name -r, --repo The repo name
-n, --install-dir The Path to install the cr tool -n, --install-dir The Path to install the cr tool
@@ -43,7 +42,6 @@ main() {
local charts_dir=charts local charts_dir=charts
local owner= local owner=
local repo= local repo=
local charts_repo_url=
local install_dir= local install_dir=
local install_only= local install_only=
local skip_packaging= local skip_packaging=
@@ -135,16 +133,6 @@ parse_command_line() {
exit 1 exit 1
fi fi
;; ;;
-u|--charts-repo-url)
if [[ -n "${2:-}" ]]; then
charts_repo_url="$2"
shift
else
echo "ERROR: '-u|--charts-repo-url' cannot be empty." >&2
show_help
exit 1
fi
;;
-o|--owner) -o|--owner)
if [[ -n "${2:-}" ]]; then if [[ -n "${2:-}" ]]; then
owner="$2" owner="$2"
@@ -203,10 +191,6 @@ parse_command_line() {
exit 1 exit 1
fi fi
if [[ -z "$charts_repo_url" ]]; then
charts_repo_url="https://$owner.github.io/$repo"
fi
if [[ -z "$install_dir" ]]; then if [[ -z "$install_dir" ]]; then
local arch local arch
arch=$(uname -m) arch=$(uname -m)
@@ -294,7 +278,7 @@ release_charts() {
} }
update_index() { update_index() {
local args=(-o "$owner" -r "$repo" -c "$charts_repo_url" --push) local args=(-o "$owner" -r "$repo" --push)
if [[ -n "$config" ]]; then if [[ -n "$config" ]]; then
args+=(--config "$config") args+=(--config "$config")
fi fi