From 8a461f2f9d2066ff92fb23e92534dd3c74db364c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Gonz=C3=A1lez?= Date: Fri, 8 Nov 2024 11:39:46 +0100 Subject: [PATCH] fetching tags from the action to checkout --- .github/workflows/release_nightly.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release_nightly.yml b/.github/workflows/release_nightly.yml index 5d35c02df421..8d453155d6f7 100644 --- a/.github/workflows/release_nightly.yml +++ b/.github/workflows/release_nightly.yml @@ -21,6 +21,7 @@ jobs: with: submodules: recursive token: ${{ secrets.GT_DAXMOBILE }} + fetch-depth: 0 - name: Set up JDK 17 uses: actions/setup-java@v4 @@ -36,8 +37,7 @@ jobs: - name: Get latest tag id: get_latest_tag - run: | - git fetch --tags + run: | output=$(git describe --tags --abbrev=0) echo "Latest tag: $output" echo "latest_tag=$output" >> $GITHUB_OUTPUT