You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## derive the proper stable branch. if the base branch is "master" the stable branch is just "stable"
348
+
## if the base branch is a release branch, the stable branch will be "x.y-stable"
349
+
result=""
350
+
ifbranch == "master"
351
+
result="stable"
352
+
else
353
+
result=branch.gsub(/-main$/,"-stable")
354
+
end
355
+
356
+
result
357
+
end
358
+
346
359
#### All the action starts ####
347
360
if $PROGRAM_NAME == __FILE__
348
361
begin
349
362
## validate base branch. this must either be "master" or a release branch which will match the pattern "x.y-main"
350
363
raise"The branch #{GH_BASE_BRANCH} is not valid for releasing backup-utils. branch name must be master or match x.y-main"if !is_base_branch_valid?(GH_BASE_BRANCH)
351
364
352
-
## derive the proper stable branch. if the base branch is "master" the stable branch is just "stable"
353
-
## if the base branch is a release branch, the stable branch will be "x.y-stable"
0 commit comments