Skip to content

Commit

Permalink
Remove deprecated charts_repo_url & mark_as_latest inputs in doc & code
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Park <krapi0314@gmail.com>
  • Loading branch information
krapie committed Jun 27, 2023
1 parent 3f9ae38 commit 5b8742e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ A GitHub action to turn a GitHub project into a self-hosted Helm chart repo, usi

1. A GitHub repo containing a directory with your Helm charts (default is a folder named `/charts`, if you want to
maintain your charts in a different directory, you must include a `charts_dir` input in the workflow).
1. A GitHub branch called `gh-pages` to store the published charts. See `charts_repo_url` for alternatives.
1. A GitHub branch called `gh-pages` to store the published charts.
1. In your repo, go to Settings/Pages. Change the `Source` `Branch` to `gh-pages`.
1. Create a workflow `.yml` file in your `.github/workflows` directory. An [example workflow](#example-workflow) is available below.
For more information, reference the GitHub Help Documentation for [Creating a workflow file](https://help.github.com/en/articles/configuring-a-workflow#creating-a-workflow-file)
Expand All @@ -19,7 +19,6 @@ A GitHub action to turn a GitHub project into a self-hosted Helm chart repo, usi
- `config`: Optional config file for chart-releaser. For more information on the config file, see the [documentation](https://github.com/helm/chart-releaser#config-file)
- `charts_dir`: The charts directory
- `skip_packaging`: This option, when populated, will skip the packaging step. This allows you to do more advanced packaging of your charts (for example, with the `helm package` command) before this action runs. This action will only handle the indexing and publishing steps.
- `mark_as_latest`: When you set this to `false`, it will mark the created GitHub release not as 'latest'.

### Environment variables

Expand Down
8 changes: 0 additions & 8 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ inputs:
skip_existing:
description: "Skip package upload if release exists"
required: false
mark_as_latest:
description: Mark the created GitHub release as 'latest'
required: false
default: true

runs:
using: composite
Expand Down Expand Up @@ -72,9 +68,5 @@ runs:
args+=(--skip-existing "${{ inputs.skip_existing }}")
fi
if [[ -n "${{ inputs.mark_as_latest }}" ]]; then
args+=(--mark-as-latest "${{ inputs.mark_as_latest }}")
fi
"$GITHUB_ACTION_PATH/cr.sh" "${args[@]}"
shell: bash
9 changes: 6 additions & 3 deletions cr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,11 @@ main() {
local install_dir=
local install_only=
local skip_packaging=
<<<<<<< HEAD
local skip_existing=
local mark_as_latest=true
=======
>>>>>>> 0d76e26 (Remove deprecated charts_repo_url & mark_as_latest inputs in doc & code)

parse_command_line "$@"

Expand Down Expand Up @@ -175,6 +178,7 @@ parse_command_line() {
shift
fi
;;
<<<<<<< HEAD
--skip-existing)
if [[ -n "${2:-}" ]]; then
skip_existing="$2"
Expand All @@ -187,6 +191,8 @@ parse_command_line() {
shift
fi
;;
=======
>>>>>>> 0d76e26 (Remove deprecated charts_repo_url & mark_as_latest inputs in doc & code)
*)
break
;;
Expand Down Expand Up @@ -291,9 +297,6 @@ release_charts() {
if [[ -n "$skip_existing" ]]; then
args+=(--skip-existing)
fi
if [[ "$mark_as_latest" = false ]]; then
args+=(--make-release-latest=false)
fi

echo 'Releasing charts...'
cr upload "${args[@]}"
Expand Down

0 comments on commit 5b8742e

Please sign in to comment.