From d6739270c7cae54f25ba5e567b81b241eda078d1 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Tue, 13 Jun 2023 00:01:21 +0200 Subject: [PATCH] Quirk for github actions checkout module that looses tag annotation --- .github/workflows/release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 130c9ad..ad5e7fc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,6 +25,11 @@ jobs: # [1]: https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/ fetch-depth: 0 + # Workaround for https://github.com/actions/checkout/issues/882 + - name: Fix tags for release + # will break on a lightweight tag + run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* + - uses: Swatinem/rust-cache@v2 with: cache-on-failure: true