Skip to content

Commit b2e4817

Browse files
wtrockiGustavo Bazan
andauthored
Gustavo bash and formatting refactor
Co-authored-by: Gustavo Bazan <[email protected]>
1 parent 35796d9 commit b2e4817

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

tools/postman/scripts/upload-collection.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,18 @@ else
8080
--header 'X-API-Key: **********'
8181
--data ${collection_transformed_path}"
8282

83-
curl --show-error --fail --retry 10 --retry-all-errors --silent --request PUT \
83+
curl --show-error \
84+
--retry 10 \
85+
--retry-delay 30 \
86+
--retry-max-time 300 \
87+
--fail \
88+
--retry-all-errors \
89+
--silent \
90+
--request PUT \
8491
--location "https://api.getpostman.com/collections/${collection_id}" \
8592
--header "Content-Type: application/json" \
8693
--header "X-API-Key: ${POSTMAN_API_KEY}" \
87-
--data "@${collection_transformed_path}" \
88-
--retry-delay 30 \
89-
--retry-max-time 300
94+
--data "@${collection_transformed_path}"
9095
fi
9196

9297
popd -0

0 commit comments

Comments
 (0)