Retry SharedCode fetches in Docker builds
Lint / Lint (push) Failing after 12m15s
Tests / Go backend (push) Failing after 12m24s
Tests / Dashboard checks (push) Failing after 12m27s
Docker / Docker Build & Push (push) Failing after 59s

This commit is contained in:
Gabriel20xx committed 2026-08-05 20:38:48 +02:00
1 parent 778cded8bf
commit bb6a7d0fed
4 files changed
+59 -5

No files matched your search

+13 -1
View File
@@ -35,7 +35,19 @@ jobs:
submodules: false
- name: Checkout latest SharedCode
working-directory: ${{ github.workspace }}
run: git clone --depth 1 --branch main --single-branch https://repos.gfranz.ch/Gabriel20xx/SharedCode.git SharedCode
run: |
for attempt in 1 2 3 4 5; do
rm -rf SharedCode
if git clone --depth 1 --branch main --single-branch https://repos.gfranz.ch/Gabriel20xx/SharedCode.git SharedCode; then
break
fi
if [ "$attempt" -eq 5 ]; then
exit 1
fi
delay=$((attempt * 5))
echo "SharedCode clone failed (attempt ${attempt}/5); retrying in ${delay}s..." >&2
sleep "$delay"
done
- name: Setup Node.js
uses: actions/setup-node@v4