From c1593b8ccbdfa690d35e95af18cce02b9c7612f2 Mon Sep 17 00:00:00 2001 From: Mohamed Elmoslemany Date: Wed, 20 Sep 2023 14:05:15 +0200 Subject: [PATCH] force fetch tags --- .github/workflows/test-tag.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-tag.yml b/.github/workflows/test-tag.yml index adb2dc44..f107abe3 100644 --- a/.github/workflows/test-tag.yml +++ b/.github/workflows/test-tag.yml @@ -28,8 +28,13 @@ jobs: echo "docker_image=$DOCKER_IMAGE_NAME:stage" >> $GITHUB_OUTPUT echo "build_env=stage" >> $GITHUB_OUTPUT echo "branch=suite-c4t" >> $GITHUB_OUTPUT - git describe --abbrev=0 --tags + git describe --tags + echo "----" git tag -l + echo "----" + git fetch --force --tags + echo "----" + git describe --abbrev=0 --tags elif [[ "${{ github.ref }}" == "refs/heads/c4t" ]] || [[ "${{ github.base_ref }}" == "c4t" ]]; then echo "docker_image=$DOCKER_IMAGE_NAME:stage" >> $GITHUB_OUTPUT