This commit is contained in:
Tim Schubert 2018-04-30 09:34:25 +02:00
parent 873fb083d9
commit ddda46913f

View file

@ -22,11 +22,8 @@ class Deadline(yaml.YAMLObject):
def trigger(self, project): def trigger(self, project):
"""Create protected tag on ref""" """Create protected tag on ref"""
log.info('Creating tag %s' % self.tag) print('Creating tag %s' % self.tag)
tags = project.tags.list(search=self.tag) tags = project.tags.list(search=self.tag)
if len(tags) > 0:
print(tags)
return
project.tags.create({ project.tags.create({
'tag_name': self.tag, 'tag_name': self.tag,