bugfix
This commit is contained in:
parent
501705438f
commit
e02f22d779
6
mix.exs
6
mix.exs
|
@ -208,7 +208,11 @@ defp version(version) do
|
||||||
branch_name =
|
branch_name =
|
||||||
with {branch_name, 0} <- System.cmd("git", ["rev-parse", "--abbrev-ref", "HEAD"]),
|
with {branch_name, 0} <- System.cmd("git", ["rev-parse", "--abbrev-ref", "HEAD"]),
|
||||||
true <- branch_name != "master" do
|
true <- branch_name != "master" do
|
||||||
"-" <> String.trim(branch_name)
|
branch_name =
|
||||||
|
String.trim(branch_name)
|
||||||
|
|> String.replace(~r/\W+/, "-")
|
||||||
|
|
||||||
|
"-" <> branch_name
|
||||||
end
|
end
|
||||||
|
|
||||||
full_version =
|
full_version =
|
||||||
|
|
Loading…
Reference in a new issue