Skip to content

Commit

Permalink
receivers: exclude pre-releases from being published
Browse files Browse the repository at this point in the history
  • Loading branch information
Glignos authored and slint committed Jan 17, 2020
1 parent 31b71af commit 4aa7792
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion invenio_github/receivers.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ def run(self, event):

# Release event
if 'release' in event.payload and \
event.payload.get('action') == 'published':
event.payload.get('action') == 'published' and\
not event.payload.get('release', {}).get('prerelease'):
try:
release = Release.create(event)
db.session.commit()
Expand Down

0 comments on commit 4aa7792

Please sign in to comment.