mirror of
https://github.com/CJackHwang/ds2api.git
synced 2026-05-06 09:25:27 +08:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf2f79b6f4 | ||
|
|
ab6e817c8e |
5
.github/workflows/release-artifacts.yml
vendored
5
.github/workflows/release-artifacts.yml
vendored
@@ -89,12 +89,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
for i in {1..6}; do
|
for i in {1..6}; do
|
||||||
if curl -fsSIL --max-time 15 https://ghcr.io/v2/ >/dev/null; then
|
code="$(curl -sS -o /dev/null -w '%{http_code}' --max-time 15 https://ghcr.io/v2/ || true)"
|
||||||
|
if [ "${code}" = "200" ] || [ "${code}" = "401" ] || [ "${code}" = "405" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
sleep "$((i * 10))"
|
sleep "$((i * 10))"
|
||||||
done
|
done
|
||||||
echo "GHCR endpoint is unreachable after multiple retries." >&2
|
echo "GHCR endpoint is unreachable after multiple retries (last status: ${code:-unknown})." >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
- name: Log in to GHCR (with retry)
|
- name: Log in to GHCR (with retry)
|
||||||
|
|||||||
Reference in New Issue
Block a user