Skip to content

Commit a710fd7

Browse files
committed
fix(release mono-repo): fix tag stripping (2) (extraneous v2)
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
1 parent 031de9c commit a710fd7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/bump-release-monorepo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ jobs:
320320
declare -a ALL_RELATIVE_MODULES
321321
mapfile -d' ' -t ALL_RELATIVE_MODULES < <(printf "%s" "${MODULE_RELATIVE_NAMES}")
322322
for module_relative_name in "${ALL_RELATIVE_MODULES[@]}"; do
323-
module_relative_name=${module_relative_name#"github.com/${GITHUB_REPO}/"} # in some case, the module is not prefixed by the root module, e.g. "v2" modules.
323+
module_relative_name=${module_relative_name#"github.com/${GITHUB_REPO}/"}|sed -E 's/\/v[0-9]+$//' # in some case, the module is not prefixed by the root module, e.g. "v2" modules.
324324
if [[ -z "${module_relative_name}" || "${module_relative_name}" == "{root}" ]] ; then
325325
module_tag="${NEXT_TAG}" # e.g. "v0.24.0"
326326
else

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ jobs:
206206
# Generate module-specific notes (Part 2)
207207
for (( i=0; i<${#ALL_RELATIVE_MODULES[@]}; i++ )); do
208208
relative_module="${ALL_RELATIVE_MODULES[$i]}"
209-
relative_module=${relative_module#"github.com/${GITHUB_REPO}/"}
209+
relative_module=${relative_module#"github.com/${GITHUB_REPO}/"}|sed -E 's/\/v[0-9]+$//' # in some case, the module is not prefixed by the root module, e.g. "v2" modules.
210210
folder="${ALL_FOLDERS[$i]}"
211211
212212
# Build exclusion list for child modules

0 commit comments

Comments
 (0)