From f0ab89f120d959409d31e1c018b9f9f00c797a9c Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Sun, 12 Nov 2023 12:41:51 -0800 Subject: [PATCH] Set fetch-depth...? --- .github/workflows/tests.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fa3c2adb..11dcf021 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -52,9 +52,11 @@ jobs: if: github.event_name == 'pull_request' steps: - uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Relative diff run: | - git diff --name-only $GITHUB_BASE_REF | tee git.diff + git diff ${{ github.base_ref }}..${{ github.head_ref }} | tee git.diff - uses: dtolnay/rust-toolchain@master with: toolchain: beta