Skip to content

Commit

Permalink
Remove split on "/" for old branch
Browse files Browse the repository at this point in the history
  • Loading branch information
coehlrich authored May 17, 2024
1 parent 7b8f230 commit 6312c1a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/check-for-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
}
}
function getBranch(info, newVersion) {
function getBranch(info) {
var release = info.type === "release";
if (release || info.april) {
return "main";
Expand All @@ -123,9 +123,9 @@ jobs:
inputs.new_version = getVersionPrefix(newVersionInfo) + newVersionInfo.version;
inputs.publish = true
var oldBranch = getBranch(oldVersionInfo, false);
var newBranch = getBranch(newVersionInfo, true);
if (oldBranch.split("/")[1] !== newBranch) {
var oldBranch = getBranch(oldVersionInfo);
var newBranch = getBranch(newVersionInfo);
if (oldBranch !== newBranch) {
inputs.new_branch = newBranch;
}
Expand Down

0 comments on commit 6312c1a

Please sign in to comment.