scripts/draft-release: add sleep to avoid race condition on uploading the binaries (#4647)

It seems that the github API is a little slow/laggy with regards to propagation of whether a release tag has been made or not.
This sleep should fix it and avoid having to retrigger builds.
This commit is contained in:
Stefan Benten 2022-03-21 15:24:20 +01:00 committed by GitHub
parent 0bde845a17
commit 2a10b2fd14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,9 @@ FOLDER="${2-}"
echo "Drafting release" echo "Drafting release"
github-release release --user storj --repo storj --tag "$TAG" --draft github-release release --user storj --repo storj --tag "$TAG" --draft
echo "Sleep 10 seconds in order to wait for release propagation"
sleep 10
echo "Uploading binaries to release draft" echo "Uploading binaries to release draft"
for app in $apps; for app in $apps;
do do