From 5ba0c6ef1e406483196effc3de7e9c319c82c1da Mon Sep 17 00:00:00 2001 From: Github Actions Date: Thu, 12 Sep 2024 16:47:19 +0100 Subject: [PATCH] ENG-1235: Testing the change in GHA WF, so temporarily disabling branch checks --- .github/workflows/tag-release.yml | 2 +- scripts/release.py | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/tag-release.yml b/.github/workflows/tag-release.yml index 7ea69f29..4b68df98 100644 --- a/.github/workflows/tag-release.yml +++ b/.github/workflows/tag-release.yml @@ -4,7 +4,7 @@ on: branches: - main - '[0-9]+.[0-9]+.x' - types: [closed] + # types: [closed] workflow_dispatch: env: diff --git a/scripts/release.py b/scripts/release.py index 65869a23..57bd0a8c 100644 --- a/scripts/release.py +++ b/scripts/release.py @@ -327,18 +327,18 @@ def tag_release() -> None: branch = git_current_branch() version = Version(get_current_version()) - if ( - not version.is_alpha - and not version.is_beta - and not git_current_branch_is_main_or_release() - ): - print( - f""" - You are currently on branch {branch}. - You should only apply release tags to release branches (e.g. 1.x) or main. - """ - ) - sys.exit(1) + # if ( + # not version.is_alpha + # and not version.is_beta + # and not git_current_branch_is_main_or_release() + # ): + # print( + # f""" + # You are currently on branch {branch}. + # You should only apply release tags to release branches (e.g. 1.x) or main. + # """ + # ) + # sys.exit(1) ensure_clean_git() tag = str(version) tag_commit(tag)