Skip to content

Commit dc962e1

Browse files
committed
always trigger a build for a new git tag
1 parent 01401c0 commit dc962e1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/github/trigger/trigger.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ def create_push(self, c, repository, branch, tag):
188188
self.execute('''
189189
UPDATE "commit" SET tag = %s WHERE id = %s AND project_id = %s
190190
''', [tag, c['id'], project_id], fetch=False)
191-
192-
if self.has_active_build(commit_id, project_id):
193-
return
191+
else:
192+
if self.has_active_build(commit_id, project_id):
193+
return
194194

195195
if not result:
196196
status_url = repository['statuses_url'].format(sha=c['id'])

0 commit comments

Comments
 (0)