From 2e90102b6241610cabeb7ee3e64e03720c485659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pascal=20Spo=CC=88rri?= Date: Fri, 19 Apr 2024 13:56:27 +0200 Subject: [PATCH] Github CI: Fix fetching tags. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pascal SpoĢˆrri --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0c65698..4447c88 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,7 +45,10 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: - fetch-tags: true # Ensure we can run "git describe" + # Ensure we can run `git describe`. + # Related issue: + # https://github.com/actions/checkout/issues/1467 + fetch-tags: ${{ ! contains(github.ref, 'refs/tags/') }} # Only fetch the tag if we're not being triggered by a tag. fetch-depth: 50 - name: Cache GRPC Build (Restore)