diff --git a/scripts/get-version b/scripts/get-version index 0f1eca4af9..ceb7c09561 100755 --- a/scripts/get-version +++ b/scripts/get-version @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# Copyright (c) 2018-2024, Camptocamp SA +# Copyright (c) 2018-2025, Camptocamp SA # All rights reserved. # Redistribution and use in source and binary forms, with or without @@ -63,6 +63,7 @@ elif args.auto_increment: elif os.environ.get("MAIN_BRANCH", "master") != "master" and ( os.environ.get("GITHUB_REF", "") == "refs/heads/" + os.environ.get("MAIN_BRANCH", "master") or os.environ.get("GITHUB_EVENT_NAME", "") == "repository_dispatch" + or os.environ.get("GITHUB_EVENT_NAME", "") == "workflow_dispatch" ): ci["minor"] = ci["minor"] + 1