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 argparse
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
import subprocess
|
||||||
|
|
||||||
|
|
||||||
def main():
|
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"
|
filepath = "pyzebra/__init__.py"
|
||||||
|
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user