Make sure to put tags only on master branch
This commit is contained in:
parent
0e176cb2f3
commit
b5b77d165a
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user