From c1df6718b4699030f123f7b31fbcf71eebe1d8f9 Mon Sep 17 00:00:00 2001 From: Jamie Wiebe Date: Wed, 15 Sep 2021 15:34:06 +0200 Subject: [PATCH] return non zero status code on failure --- publish.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/publish.py b/publish.py index b24ddcb..4884e7d 100755 --- a/publish.py +++ b/publish.py @@ -2,13 +2,13 @@ # -*- coding: utf-8 # Copyright 2017-2019 The FIAAS Authors -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -229,7 +229,7 @@ def publish(options): repo = Repository(options) if not repo.ready_for_release(): print("Repository is not ready for release", file=sys.stderr) - return + return 1 changelog = repo.generate_changelog() artifacts = create_artifacts(changelog, options) uploader = Uploader(options, repo.version, changelog, artifacts)