From 045919d1072c600e8784371e6c8918d5a3025e07 Mon Sep 17 00:00:00 2001 From: Vladimir Reznichenko Date: Wed, 31 Jul 2024 14:31:41 +0200 Subject: [PATCH] CI: git checkout speed tweaks in linting jobs. (#50169) --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 417c790a3ff..d5aa76b8de2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -90,7 +90,8 @@ jobs: - uses: 'actions/checkout@v4' name: 'Checkout' with: - fetch-depth: 0 + # the WooCommerce plugin package uses phpcs-changed for linting, which requires non-shallow git-history. + fetch-depth: ${{ ( ( matrix.projectName == '@woocommerce/plugin-woocommerce' && '0' ) || '1' ) }} - uses: './.github/actions/setup-woocommerce-monorepo' name: 'Setup Monorepo'