From 6e70aafd30f8a73d404a94e3b7ffe3341b7a9adf Mon Sep 17 00:00:00 2001 From: Alejandro R Mosteo Date: Tue, 8 Sep 2020 19:16:14 +0200 Subject: [PATCH] Fetch full history for detection of changed files (#149) --- .github/workflows/build-crate.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-crate.yml b/.github/workflows/build-crate.yml index ea1be205..55f66c64 100644 --- a/.github/workflows/build-crate.yml +++ b/.github/workflows/build-crate.yml @@ -48,9 +48,11 @@ jobs: - name: Check out alire-index uses: actions/checkout@v2 with: - fetch-depth: 10 - # Needed to be able to diff and obtain changed files. Changes beyond - # that depth are not detected. Should be OK for crate submissions. + fetch-depth: 0 + # Needed to be able to diff and obtain changed files. Furthermore, we + # need the full history or else grafted partial branches confuse the + # changed files detectors (in both scripts/gh-build-crate.sh and + # check-author action). - name: Set up GNAT toolchain (FSF) if: matrix.os == 'ubuntu-latest'