From 47509dff5fe8db42d5405a1f3a57a6ad8837e3eb Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Thu, 20 Apr 2023 19:23:57 +0200 Subject: [PATCH] release workflow: Fetch tag properly This will avoid unit test failures on tags. --- .github/workflows/release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fd4303f4..9ac8a9c8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,6 +18,9 @@ jobs: - name: Pacify git's permission check run: git config --global --add safe.directory /__w + - name: Workaround for https://github.com/actions/checkout/pull/697 + run: git fetch --force origin $(git describe --tags):refs/tags/$(git describe --tags) + - name: Install dependencies run: | sudo apt-get update