From 2c5e6aa1edee6adb31b6d04e3a00f0ec5f88d2b2 Mon Sep 17 00:00:00 2001 From: Connor Rigby Date: Tue, 29 Oct 2019 09:06:28 -0700 Subject: [PATCH] update release candidate script --- VERSION | 2 +- scripts/release_candidate.exs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 17cde6eb..e2fd617f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -8.2.0-rc1 +8.2.0-rc1 \ No newline at end of file diff --git a/scripts/release_candidate.exs b/scripts/release_candidate.exs index 0e358d4c..a5c45a3a 100755 --- a/scripts/release_candidate.exs +++ b/scripts/release_candidate.exs @@ -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))