From d611001ed40a177ba0b75cfc18d196f97b382d61 Mon Sep 17 00:00:00 2001 From: Ed Morley <501702+edmorley@users.noreply.github.com> Date: Thu, 25 Jan 2024 21:43:25 +0000 Subject: [PATCH] Force a full clone to work around fetch-tags bug/limitation --- .github/workflows/_classic-buildpack-prepare-release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/_classic-buildpack-prepare-release.yml b/.github/workflows/_classic-buildpack-prepare-release.yml index e6dadf83..e94a382c 100644 --- a/.github/workflows/_classic-buildpack-prepare-release.yml +++ b/.github/workflows/_classic-buildpack-prepare-release.yml @@ -39,6 +39,9 @@ jobs: ref: main # Tags are not fetched by default, but we need them to determine the existing buildpack version. fetch-tags: true + # Force a full clone, otherwise fetch-tags doesn't actually fetch any tags: + # https://github.com/actions/checkout/issues/1471 + fetch-depth: 0 token: ${{ steps.generate-token.outputs.app_token }} - name: Determine existing tagged version