Automated cherry-pick of #14860: Trigger release in current branch for github workflow case

Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com>
This commit is contained in:
Benjamin Wang
2022-11-26 19:17:52 +08:00
committed by ArkaSaha30
parent b10adb6abe
commit 44d78bf9aa
4 changed files with 53 additions and 21 deletions

View File

@@ -7,7 +7,6 @@ source ./scripts/test_lib.sh
VER=$1
REPOSITORY="${REPOSITORY:-git@github.com:etcd-io/etcd.git}"
if [ -z "$1" ]; then
echo "Usage: ${0} VERSION" >> /dev/stderr
exit 255
@@ -25,9 +24,7 @@ function setup_env {
pushd "${proj}" >/dev/null
run git fetch --all
git_assert_branch_in_sync || exit 2
run git checkout "${ver}"
git_assert_branch_in_sync || exit 2
popd >/dev/null
}