mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:36 +01:00
Gitee's SSH gateway intermittently accepts the connection and key, then never answers the initial git-receive-pack and drops the session ~100s later with "the remote end hung up upon initial contact". The same failure mode shows up sporadically since 2026-10-02 and spiked on 2026-10-07 (9 of 14 runs failed). Bound each push attempt with `timeout`, retry up to six times with exponential backoff, and add ssh connect/keepalive timeouts. Serialize runs (a push to main and a tag on the same commit used to race for Gitee's per-repo push lock), cap the job at 30 minutes, and allow manual workflow_dispatch reruns.