Add --pages-branch parameter (#156)

Ref:
  helm/chart-releaser@378f527
  helm/chart-releaser@cb0563b

Signed-off-by: Michal Biesek <michalbiesek@gmail.com>
This commit is contained in:
michalbiesek
2023-09-05 09:10:00 +02:00
committed by GitHub
parent 5b8970c96f
commit ed43eb3036
3 changed files with 22 additions and 0 deletions
+7
View File
@@ -35,6 +35,9 @@ inputs:
packages_with_index:
description: "Upload chart packages directly into publishing branch"
required: 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
outputs:
changed_charts:
description: "A comma-separated list of charts that were released on this run. Will be an empty string if no updates were detected, will be unset if `--skip_packaging` is used: in the latter case your custom packaging step is responsible for setting its own outputs if you need them."
@@ -91,6 +94,10 @@ runs:
args+=(--packages-with-index "${{ inputs.packages_with_index }}")
fi
if [[ -n "${{ inputs.pages_branch }}" ]]; then
args+=(--pages-branch "${{ inputs.pages_branch }}")
fi
"$GITHUB_ACTION_PATH/cr.sh" "${args[@]}"
if [[ -f changed_charts.txt ]]; then