Skip to content
代码片段 群组 项目
未验证 提交 12bc3587 编辑于 作者: Danny McCormick's avatar Danny McCormick 提交者: GitHub
浏览文件

Use same format for next and current release versions (#34262)

上级 2f804c2d
No related branches found
No related tags found
无相关合并请求
......@@ -35,7 +35,7 @@ on:
NEXT_VERSION:
description: Next release version
required: true
default: '2.XX.0'
default: '2.XX'
CREATE_RELEASE_BRANCH:
description: Whether to cut the release branch. You shouldnt skip this unless it has already been completed successfully (yes/no)
required: true
......@@ -97,10 +97,10 @@ jobs:
steps:
- name: Validate Next Version
run: |
if [[ $NEXT_RELEASE =~ ([0-9]+\.[0-9]+\.[0-9]+) ]]; then
echo "NEXT_VERSION_IN_BASE_BRANCH=${BASH_REMATCH[1]}" >> $GITHUB_ENV
if [[ $NEXT_RELEASE =~ ([0-9]+\.[0-9]+) ]]; then
echo "NEXT_VERSION_IN_BASE_BRANCH=${BASH_REMATCH[1]}.0" >> $GITHUB_ENV
else
echo "The input for NEXT_RELEASE does not match a valid format [0-9]+\.[0-9]+\.[0-9]+"
echo "The input for NEXT_RELEASE does not match a valid format [0-9]+\.[0-9]+"
exit 1
fi
- name: Check out code
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册