From 2a10b2fd14853713c8be0eb22fba889004e0bbb9 Mon Sep 17 00:00:00 2001 From: Stefan Benten Date: Mon, 21 Mar 2022 15:24:20 +0100 Subject: [PATCH] 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. --- scripts/draft-release.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/draft-release.sh b/scripts/draft-release.sh index 5cbc97b2f..e7dc2117c 100755 --- a/scripts/draft-release.sh +++ b/scripts/draft-release.sh @@ -17,6 +17,9 @@ FOLDER="${2-}" echo "Drafting release" 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" for app in $apps; do