Skip to content

Commit fd43fd8

Browse files
committed
fix: extract base version for patch releases in workflow
When releasing a patch version like 0.0.46-patch1, the workflow now correctly extracts the base version (0.0.46) to clone the matching t-ruby tag.
1 parent 807eede commit fd43fd8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ jobs:
4848
VERSION=${GITHUB_REF#refs/tags/v}
4949
T_RUBY_VERSION=""
5050
fi
51-
# t_ruby_version이 없으면 version과 동일하게 설정
51+
# t_ruby_version이 없으면 version에서 베이스 버전 추출
52+
# 예: 0.0.46-patch1 -> 0.0.46
5253
if [[ -z "$T_RUBY_VERSION" ]]; then
53-
T_RUBY_VERSION="$VERSION"
54+
T_RUBY_VERSION=$(echo "$VERSION" | sed 's/-patch[0-9]*$//')
5455
fi
5556
echo "version=$VERSION" >> $GITHUB_OUTPUT
5657
echo "t_ruby_version=$T_RUBY_VERSION" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)