release.sh: don't throw github release creation error on dry run
Signed-off-by: Filipe Laíns <lains@archlinux.org>
This commit is contained in:
parent
b2f3b56c31
commit
79be4b20d7
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue