From 315e30d42c65c1bc47f2998998e59cc9c7dfac8c Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Sun, 14 Jul 2024 08:12:40 +0200 Subject: [PATCH] tests: Apply checkout workflow workaround for tests workflow See commit 825fd7a8. This broke the version test for release tag runs. --- .github/workflows/tests.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ec935f0..ec80c40 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -28,6 +28,14 @@ jobs: # need this to also fetch tags fetch-depth: 0 + - name: Workaround for https://github.com/actions/checkout/pull/697 + run: | + set -ex + TAG=$(git describe --tags) + if echo "$TAG" | grep -q '^[0-9.]\+$'; then + git fetch --force origin $TAG:refs/tags/$TAG + fi + - name: Run unit tests run: | dpkg -s podman docker || true