Skip to content

Commit 315e30d

Browse files
committed
tests: Apply checkout workflow workaround for tests workflow
See commit 825fd7a. This broke the version test for release tag runs.
1 parent 6270f1d commit 315e30d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/tests.yml

+8
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ jobs:
2828
# need this to also fetch tags
2929
fetch-depth: 0
3030

31+
- name: Workaround for https://github.com/actions/checkout/pull/697
32+
run: |
33+
set -ex
34+
TAG=$(git describe --tags)
35+
if echo "$TAG" | grep -q '^[0-9.]\+$'; then
36+
git fetch --force origin $TAG:refs/tags/$TAG
37+
fi
38+
3139
- name: Run unit tests
3240
run: |
3341
dpkg -s podman docker || true

0 commit comments

Comments
 (0)