1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 05:14:03 +00:00

ci: try fixing retry logic, make makefile use cl on Windows

This commit is contained in:
Samuel Štancl 2025-01-02 06:28:15 +01:00
parent 93fe982b12
commit c5f187d2c7
2 changed files with 12 additions and 4 deletions

View file

@ -57,9 +57,15 @@ jobs:
if: runner.os != 'Windows'
run: |
for attempt in {1..3}; do
git pull --rebase && git push && break || sleep 5
git pull --rebase && git push && exit 0 || {
echo "Attempt $attempt failed. Retrying in 5 seconds..."
sleep 5
}
done
echo "Failed to push changes after 3 attempts."
exit 1
- name: Push files (Windows)
if: runner.os == 'Windows'
run: git pull --rebase && git push