From fd23e8ec4f815f273a348d528edbc3bf65a21b5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 19 Sep 2024 01:37:13 +0100 Subject: [PATCH] ci: bump fetch depth to unblock canary uploads (#25716) Current mac arm canaries are failing to upload because the existing latest commit hash is more that 5 commits behind and it's not in the git history. --- .github/workflows/ci.generate.ts | 2 +- .github/workflows/ci.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.generate.ts b/.github/workflows/ci.generate.ts index 33008ce92e..7e5d85897d 100755 --- a/.github/workflows/ci.generate.ts +++ b/.github/workflows/ci.generate.ts @@ -158,7 +158,7 @@ const cloneRepoStep = [{ // Use depth > 1, because sometimes we need to rebuild main and if // other commits have landed it will become impossible to rebuild if // the checkout is too shallow. - "fetch-depth": 5, + "fetch-depth": 50, submodules: false, }, }]; diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a8ff11c341..eecc5b5fdf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: - name: Clone repository uses: actions/checkout@v4 with: - fetch-depth: 5 + fetch-depth: 50 submodules: false if: github.event.pull_request.draft == true - id: check @@ -148,7 +148,7 @@ jobs: - name: Clone repository uses: actions/checkout@v4 with: - fetch-depth: 5 + fetch-depth: 50 submodules: false if: '!(matrix.skip)' - name: Clone submodule ./tests/util/std