Allow multiple releases to run at once

Find draft release by draft flag and tag name
This commit is contained in:
John Kleinschmidt 2018-01-30 17:35:16 -07:00
parent 67196bdd3e
commit 7e9131d82b
3 changed files with 7 additions and 9 deletions

View file

@ -179,7 +179,7 @@ def get_text_with_editor(name):
def create_or_get_release_draft(github, releases, tag, tag_exists):
# Search for existing draft.
for release in releases:
if release['draft']:
if release['draft'] and release['tag_name'] == tag:
return release
if tag_exists: