update release candidate script

pull/1045/head
Connor Rigby 2019-10-29 09:06:28 -07:00 committed by Connor Rigby
parent ac5336d2b0
commit 2c5e6aa1ed
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
8.2.0-rc1
8.2.0-rc1

View File

@ -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))