From 1a2f12565bda757c600b939cd738e66640bf96d3 Mon Sep 17 00:00:00 2001 From: Bishal das <70086051+bishal7679@users.noreply.github.com> Date: Wed, 19 Oct 2022 19:28:33 +0530 Subject: [PATCH] Update multi-platform.yml Signed-off-by: Bishal das <70086051+bishal7679@users.noreply.github.com> --- .github/workflows/multi-platform.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/multi-platform.yml b/.github/workflows/multi-platform.yml index 3acfe65..7209794 100644 --- a/.github/workflows/multi-platform.yml +++ b/.github/workflows/multi-platform.yml @@ -62,10 +62,9 @@ jobs: else echo RELEASE_CHANNEL=edge >> $GITHUB_ENV fi - LATEST_VERSION=$(git ls-remote --tags | tail -1 | cut -f2 | sed 's/refs\/tags\///g') >> $GITHUB_ENV - GIT_VERSION=$(git ls-remote --tags | tail -1 | cut -f2 | sed 's/refs\/tags\///g') >> $GITHUB_ENV - # GIT_VERSION=$(git describe --tags `git rev-list --tags --max-count=1` --always) - GIT_STRIPPED_VERSION=$(git ls-remote --tags | tail -1 | cut -f2 | sed 's/refs\/tags\///g' | cut -c2-) + LATEST_VERSION=$(git ls-remote --sort='v:refname' --tags | tail -1 | cut -f2 | sed 's/refs\/tags\///g') >> $GITHUB_ENV + GIT_VERSION=$(git ls-remote --sort='v:refname' --tags | tail -1 | cut -f2 | sed 's/refs\/tags\///g') >> $GITHUB_ENV + GIT_STRIPPED_VERSION=$(git ls-remote --sort='v:refname' --tags | tail -1 | cut -f2 | sed 's/refs\/tags\///g' | cut -c2-) echo "Release channel determined to be $RELEASE_CHANNEL" echo "GIT_LATEST=$LATEST_VERSION" >> $GITHUB_ENV echo "GIT_VERSION=$GIT_VERSION" >> $GITHUB_ENV