Make sure to put tags only on master branch

This commit is contained in:
usov_i 2020-11-09 11:18:04 +01:00
parent 0e176cb2f3
commit b5b77d165a

View File

@ -3,9 +3,15 @@
import argparse
import os
import re
import subprocess
def main():
branch = subprocess.check_output("git rev-parse --abbrev-ref HEAD", shell=True).decode().strip()
if branch != "master":
print("Aborting, not on 'master' branch.")
return
filepath = "pyzebra/__init__.py"
parser = argparse.ArgumentParser()