Skip to content

Commit

Permalink
fix release script
Browse files Browse the repository at this point in the history
  • Loading branch information
antoooks committed Feb 3, 2024
1 parent c21f698 commit e5eb6f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions releasing/create-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,12 @@ 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}-${version}"
release_branch="release-${module}/${version}"

# Create release branch release-{module}/{version}
echo "Creating release..."
Expand All @@ -119,7 +120,7 @@ function create_release {
additional_release_artifacts_arg=""

# Trigger workflow for respective modeule release
gh workflow run "release-${module}.yml" -f "release_type=${release_type}" -f "release_branch=${release_branch}"
gh workflow run "release-${module_slugified}.yml" -f "release_type=${release_type}" -f "release_branch=${release_branch}"

# build `kustomize` binary
if [[ "$module" == "kustomize" ]]; then
Expand Down

0 comments on commit e5eb6f9

Please sign in to comment.