Skip to content

Commit e426b4a

Browse files
committed
fix: set ${BRNCH} = current branch when target-repo, Fixes #1633
1 parent 3cebb03 commit e426b4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ViewModels/ExecuteCustomAction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ private string PrepareStringByTarget(string org)
210210
Models.Branch b => org.Replace("${BRANCH}", b.FriendlyName),
211211
Models.Commit c => org.Replace("${SHA}", c.SHA),
212212
Models.Tag t => org.Replace("${TAG}", t.Name),
213-
_ => org,
213+
_ => org.Replace("${BRANCH}", _repo.CurrentBranch.FriendlyName),
214214
};
215215
}
216216

0 commit comments

Comments
 (0)