From b9d7028cb95b7b63e0484579ad507ee3dbdb79e1 Mon Sep 17 00:00:00 2001 From: Joel Uckelman Date: Sun, 14 Apr 2024 15:49:26 +0100 Subject: [PATCH] Try to get tags; fetch-tags option for checkout action basically doesn't work for shallow checkouts. --- .github/workflows/package.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index ab6181d816..16c4c7499d 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -105,6 +105,9 @@ jobs: with: fetch-depth: 1 + - name: Get tags + run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* + - name: Set branch if: github.ref != 'refs/heads/master' && github.ref != 'refs/heads/release-3.7' # Checking out a detached head for PR means we have to set the branch