From 9cf3510ac1fd65cd3c32145495e90297a2602e7c Mon Sep 17 00:00:00 2001 From: moabu <47318409+moabu@users.noreply.github.com> Date: Tue, 24 Dec 2024 21:39:39 +0300 Subject: [PATCH] ci: fix build packages Signed-off-by: moabu <47318409+moabu@users.noreply.github.com> --- .github/workflows/build-packages.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-packages.yml b/.github/workflows/build-packages.yml index ba100c71d3f..23790e808da 100644 --- a/.github/workflows/build-packages.yml +++ b/.github/workflows/build-packages.yml @@ -86,7 +86,7 @@ jobs: if [[ ${{ github.event.ref }} == 'refs/tags/nightly' ]]; then echo "version=0.0.0-nightly" >> $GITHUB_OUTPUT else - echo "version=$(echo ${{ github.event.ref }} | cut -d 'v' -f 2)" >> $GITHUB_OUTPUT + echo "version=$(echo ${{ github.event.ref }} | cut -d 'v' -f 2)-stable" >> $GITHUB_OUTPUT fi echo "PACKAGE_PREFIX=jans" >> ${GITHUB_ENV} @@ -252,10 +252,6 @@ jobs: - name: Get latest tag id: previoustag run: | - VERSION=$(echo ${{ github.event.ref }} | cut -d 'v' -f 2) - if [[ ${{ github.event.ref }} != *nightly* ]]; then - VERSION="${VERSION}-stable" - fi echo "version=${VERSION}" >> $GITHUB_OUTPUT echo "tag=$(echo ${{ github.event.ref }} | cut -d '/' -f 3)" >> $GITHUB_OUTPUT @@ -370,8 +366,8 @@ jobs: - name: Generate sha256sum and sign id: sign-cedarling run: | - TAG=$(echo ${{ github.event.ref }} | cut -d '/' -f 3) - VERSION="${TAG}" + TAG=$(echo ${{ github.event.ref }} | cut -d '/' -f 3 | sed 's/^v//') + VERSION="$(echo ${{ github.event.ref }} | cut -d '/' -f 3)" if [ "${TAG}" == "nightly" ]; then VERSION=nightly TAG="0.0.0" @@ -416,7 +412,7 @@ jobs: id: sign-cedarling run: | TAG=$(echo ${{ github.event.ref }} | cut -d '/' -f 3 | sed 's/^v//') - VERSION="${TAG}" + VERSION="$(echo ${{ github.event.ref }} | cut -d '/' -f 3)" if [ "${TAG}" == "nightly" ]; then VERSION=nightly TAG="0.0.0"