Skip to content

Commit

Permalink
MAINT: please.py should build when tagged
Browse files Browse the repository at this point in the history
  • Loading branch information
has2k1 committed Jul 6, 2023
1 parent 705bd55 commit 8c218e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/utils/please.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,11 @@ def can_build() -> bool:
"""
Return True if wheels should be built
"""
tag = get_build_tag()
return (
is_wheel_build() or
is_release_tag(tag) or
is_pre_release_tag(tag) or
os.environ.get("GITHUB_EVENT_NAME") == "schedule" or
os.environ.get("GITHUB_EVENT_NAME") == "workflow_dispatch"
)
Expand All @@ -187,7 +190,6 @@ def can_release() -> bool:
return (
bool(tag) and
Git.is_annotated(tag) and
can_build() and
is_release_tag(tag) and
is_release_tag_message_ok(tag)
)
Expand All @@ -201,7 +203,6 @@ def can_pre_release() -> bool:
return (
bool(tag) and
Git.is_annotated(tag) and
can_build() and
is_pre_release_tag(tag) and
is_release_tag_message_ok(tag)
)
Expand Down

0 comments on commit 8c218e5

Please sign in to comment.