Fix tags
This commit is contained in:
parent
873fb083d9
commit
ddda46913f
1 changed files with 1 additions and 4 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue