From 0ee5baf6c50237c56538784ca53a9ffd07adf611 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 17 Apr 2026 07:18:58 +0100 Subject: [PATCH] ci: retry failed custom checkouts --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0b8128feb2f..5d46bc17ebb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -677,9 +677,10 @@ jobs: -c protocol.version=2 \ -c "http.https://github.com/.extraheader=AUTHORIZATION: basic ${auth_header}" \ fetch --no-tags --prune --no-recurse-submodules --depth=1 origin \ - "+${CHECKOUT_SHA}:refs/remotes/origin/ci-target" + "+${CHECKOUT_SHA}:refs/remotes/origin/ci-target" || return 1 - git -C "$workdir" checkout --force --detach "$CHECKOUT_SHA" + git -C "$workdir" checkout --force --detach "$CHECKOUT_SHA" || return 1 + test -f "$workdir/.github/actions/setup-node-env/action.yml" || return 1 echo "checkout attempt ${attempt}/2 succeeded" }