update release candidate script
parent
ac5336d2b0
commit
2c5e6aa1ed
|
@ -2,7 +2,7 @@
|
|||
{_, 0} = System.cmd("git", ["checkout", "staging"], into: IO.stream(:stdio, :line))
|
||||
{_, 0} = System.cmd("git", ["fetch", "--all"], into: IO.stream(:stdio, :line))
|
||||
{_, 0} = System.cmd("git", ["reset", "--hard", "origin/staging"], into: IO.stream(:stdio, :line))
|
||||
version = File.read!("VERSION") |> Version.parse!()
|
||||
version = File.read!("VERSION") |> String.trim() |> Version.parse!()
|
||||
[<<"rc", rc :: binary>>] = version.pre
|
||||
version = %{version | pre: ["rc#{String.to_integer(rc) + 1}"]}
|
||||
:ok = File.write!("VERSION", to_string(version))
|
||||
|
|
Loading…
Reference in New Issue