From 7d25b4c0bfdce224de370cc4f61a7d54c798242b Mon Sep 17 00:00:00 2001 From: Anthony Shew Date: Mon, 10 Feb 2025 08:23:43 -0700 Subject: [PATCH] ci(fix): checkout before doing path filtering (#9920) ### Description We're seeing sporadic failures on the `dorny/paths-filter` part, and[ the recommended recourse](https://github.com/dorny/paths-filter/issues/24#issuecomment-841818275) from the workflow author is to add a checkout. Failures: - https://github.com/vercel/turborepo/actions/runs/13208878667/job/36878355246 - https://github.com/vercel/turborepo/actions/runs/13205111177/job/36866322671 However, it's notable that it looks like GHA just...does this sometimes? - https://github.com/actions/checkout/issues/417 - https://github.com/actions/runner-images/issues/9632 - https://github.com/actions/runner-images/issues/9882 ### Testing Instructions CI --- .github/workflows/turborepo-test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/turborepo-test.yml b/.github/workflows/turborepo-test.yml index 9c3691a0ed6b7..c9386abc48b7d 100644 --- a/.github/workflows/turborepo-test.yml +++ b/.github/workflows/turborepo-test.yml @@ -26,6 +26,9 @@ jobs: with-tailwind-example: ${{ steps.filter.outputs.with-tailwind-example }} rest: ${{ steps.filter.outputs.rest }} steps: + - name: Checkout + uses: actions/checkout@v4 + - uses: dorny/paths-filter@v3 id: filter with: