mirror of
https://github.com/R2Northstar/Northstar
synced 2025-11-06 15:52:30 +01:00
Compare commits
3 Commits
v1.19.11-r
...
feat/debug
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9b77206591 | ||
|
|
de87f41b45 | ||
|
|
d6d2dfe47d |
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -82,7 +82,7 @@ jobs:
|
|||||||
- name: Cleanup root Northstar repository files
|
- name: Cleanup root Northstar repository files
|
||||||
working-directory: northstar
|
working-directory: northstar
|
||||||
run: |
|
run: |
|
||||||
rm -rf .git .github .gitignore *.md LICENSE thunderstore .ci.env.example
|
rm -rf .git .github .gitignore *.md LICENSE thunderstore .ci.env.example *.sh
|
||||||
- name: Upload
|
- name: Upload
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -6,14 +6,17 @@ if [ -z "$1" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
url="https://github.com/R2Northstar/NorthstarLauncher/releases/tag/$1"
|
url="https://github.com/R2Northstar/NorthstarLauncher/releases/download/$1/northstar-launcher.zip"
|
||||||
wait_time_seconds=60
|
wait_time_seconds=60
|
||||||
|
|
||||||
|
echo "Checking $url"
|
||||||
|
|
||||||
# Loop until the response code changes
|
# Loop until the response code changes
|
||||||
while true; do
|
while true; do
|
||||||
response=$(curl --silent --output /dev/null --write-out "%{http_code}" $url)
|
response=$(curl --silent --output /dev/null --write-out "%{http_code}" $url)
|
||||||
if [ $response -ne 200 ]; then
|
echo "Got response $response"
|
||||||
echo "Response is not 200. Retrying in $wait_time_seconds seconds."
|
if [ $response -eq 404 ]; then
|
||||||
|
echo "Response is 404. Retrying in $wait_time_seconds seconds."
|
||||||
sleep $wait_time_seconds
|
sleep $wait_time_seconds
|
||||||
else
|
else
|
||||||
echo "Site is accessible with response code $response."
|
echo "Site is accessible with response code $response."
|
||||||
|
|||||||
Reference in New Issue
Block a user