From a8714dbd4924b5d5574b73fb52e2c4c8dcb53a87 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Mon, 13 May 2024 11:26:54 -0700 Subject: [PATCH] Github: Support a timeout on checkout Sometimes github or the CI runner times out trying to checkout the source and stays timing out forever. Give it a three minute timeout otherwise the CI runner will stall forever. --- .github/workflows/pr-code-format.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pr-code-format.yml b/.github/workflows/pr-code-format.yml index 6e45f9b3d..bcca9fd5e 100644 --- a/.github/workflows/pr-code-format.yml +++ b/.github/workflows/pr-code-format.yml @@ -20,6 +20,7 @@ jobs: - name: Checkout through merge base uses: rmacklin/fetch-through-merge-base@v0 + timeout-minutes: 3 with: base_ref: ${{ github.event.pull_request.base.ref }} head_ref: ${{ github.event.pull_request.head.sha }}