diff --git a/action.yml b/action.yml index a612894..26f0445 100644 --- a/action.yml +++ b/action.yml @@ -16,9 +16,6 @@ inputs: description: The charts directory required: false default: charts - charts_repo_url: - description: "The GitHub Pages URL to the charts repo (default: https://.github.io/)" - required: false install_dir: description: 'Where to install the cr tool' required: false @@ -44,10 +41,6 @@ runs: args+=(--config "${{ inputs.config }}") fi - if [[ -n "${{ inputs.charts_repo_url }}" ]]; then - args+=(--charts-repo-url "${{ inputs.charts_repo_url }}") - fi - if [[ -z "${{ inputs.install_dir }}" ]]; then install="$RUNNER_TOOL_CACHE/cr/${{ inputs.version }}/$(uname -m)" echo "$install" >> "$GITHUB_PATH" diff --git a/cr.sh b/cr.sh index a8830d6..10d596c 100755 --- a/cr.sh +++ b/cr.sh @@ -28,7 +28,6 @@ Usage: $(basename "$0") -v, --version The chart-releaser version to use (default: $DEFAULT_CHART_RELEASER_VERSION)" --config The path to the chart-releaser config file -d, --charts-dir The charts directory (default: charts) - -u, --charts-repo-url The GitHub Pages URL to the charts repo (default: https://.github.io/) -o, --owner The repo owner -r, --repo The repo name -n, --install-dir The Path to install the cr tool @@ -42,7 +41,6 @@ main() { local charts_dir=charts local owner= local repo= - local charts_repo_url= local install_dir= local install_only= @@ -125,16 +123,6 @@ parse_command_line() { exit 1 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) if [[ -n "${2:-}" ]]; then owner="$2" @@ -187,10 +175,6 @@ parse_command_line() { exit 1 fi - if [[ -z "$charts_repo_url" ]]; then - charts_repo_url="https://$owner.github.io/$repo" - fi - if [[ -z "$install_dir" ]]; then local arch arch=$(uname -m) @@ -278,7 +262,7 @@ release_charts() { } update_index() { - local args=(-o "$owner" -r "$repo" -c "$charts_repo_url" --push) + local args=(-o "$owner" -r "$repo" --push) if [[ -n "$config" ]]; then args+=(--config "$config") fi