Skip to content

Commit

Permalink
ENG-1235: Testing the change in GHA WF, so temporarily disabling bran…
Browse files Browse the repository at this point in the history
…ch checks
  • Loading branch information
AsadHasan-Rasa committed Sep 12, 2024
1 parent 562d7f1 commit 5ba0c6e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tag-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches:
- main
- '[0-9]+.[0-9]+.x'
types: [closed]
# types: [closed]
workflow_dispatch:

env:
Expand Down
24 changes: 12 additions & 12 deletions scripts/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5ba0c6e

Please sign in to comment.