Skip to content

Commit 0ee5baf

Browse files
committed
ci: retry failed custom checkouts
1 parent 1ffc02e commit 0ee5baf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,9 +677,10 @@ jobs:
677677
-c protocol.version=2 \
678678
-c "http.https://github.com/.extraheader=AUTHORIZATION: basic ${auth_header}" \
679679
fetch --no-tags --prune --no-recurse-submodules --depth=1 origin \
680-
"+${CHECKOUT_SHA}:refs/remotes/origin/ci-target"
680+
"+${CHECKOUT_SHA}:refs/remotes/origin/ci-target" || return 1
681681
682-
git -C "$workdir" checkout --force --detach "$CHECKOUT_SHA"
682+
git -C "$workdir" checkout --force --detach "$CHECKOUT_SHA" || return 1
683+
test -f "$workdir/.github/actions/setup-node-env/action.yml" || return 1
683684
echo "checkout attempt ${attempt}/2 succeeded"
684685
}
685686

0 commit comments

Comments
 (0)