From 805eaca4b7a8c1d1208c6a75d5f2b6b7d92d0116 Mon Sep 17 00:00:00 2001 From: Colin Adler Date: Tue, 1 Aug 2023 21:48:35 -0500 Subject: [PATCH] chore: use fetch-depth: 1 for most ci jobs (#8847) --- .github/workflows/ci.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ac099410cb..62921b17ff 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -40,6 +40,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + with: + fetch-depth: 1 # For pull requests it's not necessary to checkout the code - name: check changed files uses: dorny/paths-filter@v2 @@ -109,6 +111,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + with: + fetch-depth: 1 - name: Setup Node uses: ./.github/actions/setup-node @@ -162,6 +166,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + with: + fetch-depth: 1 - name: Setup Node uses: ./.github/actions/setup-node @@ -207,6 +213,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + with: + fetch-depth: 1 - name: Setup Node uses: ./.github/actions/setup-node @@ -256,6 +264,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + with: + fetch-depth: 1 - name: Setup Go uses: ./.github/actions/setup-go @@ -323,6 +333,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + with: + fetch-depth: 1 - name: Setup Go uses: ./.github/actions/setup-go @@ -369,6 +381,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + with: + fetch-depth: 1 - name: Setup Go uses: ./.github/actions/setup-go @@ -488,6 +502,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + with: + fetch-depth: 1 - name: Setup Node uses: ./.github/actions/setup-node @@ -516,6 +532,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + with: + fetch-depth: 1 - name: Setup Node uses: ./.github/actions/setup-node @@ -619,6 +637,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 with: + # 0 is required here for version.sh to work. fetch-depth: 0 - name: Setup Node