Skip to content

Commit

Permalink
fix release branch formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
antoooks committed Feb 3, 2024
1 parent 4c1573f commit c21f698
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions releasing/create-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,11 @@ function create_release {
# Take everything before the last slash.
# This is expected to match $module.
module=${git_tag%/*}
module_slugified=$(echo $module | iconv -t ascii//TRANSLIT | sed -E -e 's/[^[:alnum:]]+/-/g' -e 's/^-+|-+$//g' | tr '[:upper:]' '[:lower:]')

# Take everything after the last slash.
version=${git_tag##*/}

release_branch="release-${module_slugified}/${version}"
release_branch="release-${module}-${version}"

# Create release branch release-{module}/{version}
echo "Creating release..."
Expand Down

0 comments on commit c21f698

Please sign in to comment.