Skip to content

Commit

Permalink
Skip release on ⬆️ Update
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt committed Dec 5, 2024
1 parent fa601bf commit 66ad1eb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ def is_already_tagged(repo: git.Repo) -> bool:
def should_skip_release(repo: git.Repo) -> bool:
"""Check if the commit message contains [skip release]."""
commit_message = repo.head.commit.message.split("\n")[0]
return "[skip release]" in commit_message or "[pre-commit.ci]" in commit_message
return (
"[skip release]" in commit_message
or "[pre-commit.ci]" in commit_message
or "⬆️ Update" in commit_message
)


def get_new_version(repo: git.Repo) -> str:
Expand Down

0 comments on commit 66ad1eb

Please sign in to comment.