From a7f74feabd27195afd241401d92144a2edd284f2 Mon Sep 17 00:00:00 2001 From: Gustavo Valverde Date: Tue, 6 Sep 2022 15:58:03 -0400 Subject: [PATCH] ci(lint): fetch with depth for `tj-actions/changed-files` on push (#5097) Previous behavior: The `tj-actions/changed-files` crashed when making pushes to main, as no fetch depth was defined on the previous checkout action. Which is now r required after https://github.com/ZcashFoundation/zebra/commit/b216561b5bda1f515d1c5a2ba13d16d56855bbca Expected behavior: Do not fail with this new requirement Solution: Change the chekout action `fetch-depth` to 2, allowing to compare with the previous commit --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2364dd1c1..1dfc15a9f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -35,7 +35,7 @@ jobs: - uses: actions/checkout@v3.0.2 with: persist-credentials: false - fetch-depth: 0 + fetch-depth: 2 - name: Rust files id: changed-files-rust