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
+
336
359
#### All the action starts ####
337
360
if $PROGRAM_NAME == __FILE__
338
361
begin
362
+
## validate base branch. this must either be "master" or a release branch which will match the pattern "x.y-main"
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)
0 commit comments