Skip to content

Commit

Permalink
fix: tag search, multiline + update version for operator release (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-ri authored Oct 29, 2021
1 parent c453f7c commit 467f05a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/actions/releaser/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ runs:
export OWNER=$owner
export REPO=$repo
mapfile -t target< <(echo ${{ inputs.target }})
"$GITHUB_ACTION_PATH/cr.sh" "${target[@]}"
"$GITHUB_ACTION_PATH/cr.sh" "${{ inputs.target }}"
6 changes: 4 additions & 2 deletions .github/actions/releaser/cr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ release_charts_inside_folders() {

# form list of folder which was changed
for folder in "${folders[@]}"; do
[[ ! -f "$charts_dir/$folder/Chart.yaml" ]] && continue
print_line_separator
local chart_name
local tag
Expand Down Expand Up @@ -87,7 +88,7 @@ get_latest_tag(){
local name=$1

git fetch --tags > /dev/null 2>&1
git describe --tags --abbrev=0 --match="$name*"
git describe --tags --abbrev=0 --match="$name*" "$(git rev-list --tags --max-count=1)"
}

install_chart_releaser() {
Expand Down Expand Up @@ -152,4 +153,5 @@ update_index() {
cr index "${args[@]}"
}

main "$@"
mapfile -t target< <(echo "$1" )
main "${target[@]}"
2 changes: 1 addition & 1 deletion charts/atlas-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: mongodb-atlas-operator
description: |-
MongoDB Atlas Operator - a Helm chart for installing and upgrading Atlas Operator: the official Kubernetes operator allowing to manage MongoDB Atlas resources from Kubernetes
type: application
version: 0.2.4
version: 0.2.5
appVersion: 0.6.1
kubeVersion: ">=1.15.0-0"
keywords:
Expand Down

0 comments on commit 467f05a

Please sign in to comment.