Preparations for renaming master to stable

This commit is contained in:
rinpatch 2019-10-14 18:38:51 +03:00
commit 0e9243e8a2
13 changed files with 19 additions and 15 deletions

View file

@ -220,7 +220,10 @@ defmodule Pleroma.Mixfile do
with {branch_name, 0} <- System.cmd("git", ["rev-parse", "--abbrev-ref", "HEAD"]),
branch_name <- String.trim(branch_name),
branch_name <- System.get_env("PLEROMA_BUILD_BRANCH") || branch_name,
true <- branch_name not in ["master", "HEAD"] do
true <-
!Enum.all?(["master", "HEAD", "release/", "stable"], fn name ->
name != branch_name
end) do
branch_name =
branch_name
|> String.trim()