Merge branch 'exclude-visibilities-for-timelines' into 'develop'
[akkoma] / mix.exs
diff --git a/mix.exs b/mix.exs
index 3a605b4553d41c74ede5cd731007555f28736342..6cf766c521cdbd109387b2b471b58b5c07c17397 100644 (file)
--- a/mix.exs
+++ b/mix.exs
@@ -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.any?(["master", "HEAD", "release/", "stable"], fn name ->
+               String.starts_with?(name, branch_name)
+             end) do
         branch_name =
           branch_name
           |> String.trim()