Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Daniel Scheffler
arosics
Commits
63f8f962
Commit
63f8f962
authored
Sep 29, 2021
by
Daniel Scheffler
Browse files
Sleep 5 seconds before checking the latest release.
Signed-off-by:
Daniel Scheffler
<
danschef@gfz-potsdam.de
>
parent
9bd91406
Pipeline
#28413
passed with stage
in 3 minutes and 55 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.github/create_release_from_gitlab_ci.sh
View file @
63f8f962
...
...
@@ -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(.*)(?=")'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment