Skip to content

Commit

Permalink
tests: Apply checkout workflow workaround for tests workflow
Browse files Browse the repository at this point in the history
See commit 825fd7a. This broke the version test for release tag runs.
  • Loading branch information
martinpitt committed Jul 14, 2024
1 parent 6270f1d commit 315e30d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 315e30d

Please sign in to comment.