Commit 63f8f962 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Sleep 5 seconds before checking the latest release.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 9bd91406
Pipeline #28413 passed with stage
in 3 minutes and 55 seconds
......@@ -14,6 +14,9 @@ API_JSON=$(printf '{"tag_name":"%s",
AUTH_HEADER="Authorization: token $GITHUB_RELEASE_TOKEN"
curl $URL_RELEASES --data "$API_JSON" -H "$AUTH_HEADER"
# sleep 5 seconds, otherwise the check below may fail
sleep 5
# get latest release tag name
LATEST_RELEASE=$(curl -s "$URL_RELEASES"/latest | grep -oP '"tag_name": "\K(.*)(?=")')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment