From ee54727582c943b6720ea7166c097569c60bd7f4 Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Tue, 22 Apr 2025 11:31:35 -0500 Subject: [PATCH] build: don't kill ssh sessions on checkout failure (#46717) Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr --- .github/actions/checkout/action.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/actions/checkout/action.yml b/.github/actions/checkout/action.yml index a9fcd9002228..205eefde2581 100644 --- a/.github/actions/checkout/action.yml +++ b/.github/actions/checkout/action.yml @@ -179,3 +179,11 @@ runs: else echo "Cache key persisted in $final_cache_path" fi + - name: Wait for active SSH sessions + shell: bash + if: always() && !cancelled() + run: | + while [ -f /var/.ssh-lock ] + do + sleep 60 + done