Skip to content

Commit 10317cd

Browse files
authored
Deploy only for pre-releases. (#205)
1 parent 4f459b5 commit 10317cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

update_version_from_git.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ def release_version_correct():
117117
initpy = os.path.abspath("django_prometheus/__init__.py")
118118

119119
new_version = prerelease_version()
120+
if ".dev" not in new_version:
121+
assert False, "Automation used only for pre-releases"
120122
print(
121123
"updating version in __init__.py to {new_version}".format(
122124
new_version=new_version

0 commit comments

Comments
 (0)