From 79be4b20d7bef565800a33dba8d7d3c64a08a847 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filipe=20La=C3=ADns?= Date: Mon, 16 Mar 2020 21:01:13 +0000 Subject: [PATCH] release.sh: don't throw github release creation error on dry run MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Filipe LaĆ­ns --- release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release.sh b/release.sh index a2324c37..4d52ef25 100755 --- a/release.sh +++ b/release.sh @@ -152,7 +152,7 @@ EOF } echo 'Creating github release...' [ -z "$DRY_RUN" ] && url=$(curl -X POST --data "$(body)" "https://api.github.com/repos/$repo/releases?access_token=$github_token" 2>/dev/null | jq -r .html_url) -[ -z "$url" ] && echo -e '\nError: Failed to create a github release' && exit 1 +[ -z "$DRY_RUN" ] && [ -z "$url" ] && echo -e '\nError: Failed to create a github release' && exit 1 [ -z "$DRY_RUN" ] && echo -e "\nRelease created: $url"