feat(gitea,release): add retry flag and remove verbose one
This commit is contained in:
parent
6c5c580156
commit
3f1b8bcda1
|
@ -14,6 +14,7 @@ GITEA_RELEASE_IS_DRAFT=${GITEA_RELEASE_IS_DRAFT:-false}
|
|||
GITEA_RELEASE_IS_PRERELEASE=${GITEA_RELEASE_IS_PRERELEASE:-true}
|
||||
GITEA_RELEASE_BODY=${GITEA_RELEASE_BODY}
|
||||
GITEA_RELEASE_ATTACHMENTS=${GITEA_RELEASE_ATTACHMENTS}
|
||||
GITEA_UPLOAD_MAX_RETRY=${GITEA_UPLOAD_MAX_RETRY:-3}
|
||||
|
||||
function check_dependencies {
|
||||
assert_command_available 'curl'
|
||||
|
@ -157,7 +158,8 @@ function gitea_api {
|
|||
curl -L \
|
||||
--fail \
|
||||
--ipv4 \
|
||||
-v \
|
||||
--progress-bar \
|
||||
--retry "$GITEA_UPLOAD_MAX_RETRY" \
|
||||
-u "$GITEA_RELEASE_USERNAME:$GITEA_RELEASE_PASSWORD" \
|
||||
${args} \
|
||||
"$GITEA_RELEASE_BASE_URL/api/v1$path"
|
||||
|
|
Loading…
Reference in New Issue