From 2079c9c9299a10085812c4388499f27abe22d02c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edu=20G=C3=B3mez=20Escandell?= Date: Mon, 18 Sep 2023 11:42:47 +0200 Subject: [PATCH] Override fetch depth in actions/checkout To check if our dependencies are up to date or not without spamming the commit history, we diff from HEAD to the commit the dependency points to. Hence, we need the commit history to decide wether to go get the latest revision of the module. --- .github/workflows/auto-updates.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/auto-updates.yaml b/.github/workflows/auto-updates.yaml index b9ac0d05d..c87d8ef06 100644 --- a/.github/workflows/auto-updates.yaml +++ b/.github/workflows/auto-updates.yaml @@ -125,6 +125,8 @@ jobs: uses: actions/checkout@v4 with: ref: main + fetch-depth: 0 + # ^ 0 means infinity in this context. This is necessary to later be able to compute diffs. - name: Set up git uses: ./.github/actions/setup-git with: