Skip to content

Commit aa1b2ed

Browse files
committed
ci: fix build packages
Signed-off-by: moabu <[email protected]>
1 parent 8e9ba8e commit aa1b2ed

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/build-packages.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
if [[ ${{ github.event.ref }} == 'refs/tags/nightly' ]]; then
8787
echo "version=0.0.0-nightly" >> $GITHUB_OUTPUT
8888
else
89-
echo "version=$(echo ${{ github.event.ref }} | cut -d 'v' -f 2)" >> $GITHUB_OUTPUT
89+
echo "version=$(echo ${{ github.event.ref }} | cut -d 'v' -f 2)-stable" >> $GITHUB_OUTPUT
9090
fi
9191
echo "PACKAGE_PREFIX=jans" >> ${GITHUB_ENV}
9292
@@ -252,10 +252,6 @@ jobs:
252252
- name: Get latest tag
253253
id: previoustag
254254
run: |
255-
VERSION=$(echo ${{ github.event.ref }} | cut -d 'v' -f 2)
256-
if [[ ${{ github.event.ref }} != *nightly* ]]; then
257-
VERSION="${VERSION}-stable"
258-
fi
259255
260256
echo "version=${VERSION}" >> $GITHUB_OUTPUT
261257
echo "tag=$(echo ${{ github.event.ref }} | cut -d '/' -f 3)" >> $GITHUB_OUTPUT
@@ -370,8 +366,8 @@ jobs:
370366
- name: Generate sha256sum and sign
371367
id: sign-cedarling
372368
run: |
373-
TAG=$(echo ${{ github.event.ref }} | cut -d '/' -f 3)
374-
VERSION="${TAG}"
369+
TAG=$(echo ${{ github.event.ref }} | cut -d '/' -f 3 | sed 's/^v//')
370+
VERSION="$(echo ${{ github.event.ref }} | cut -d '/' -f 3)"
375371
if [ "${TAG}" == "nightly" ]; then
376372
VERSION=nightly
377373
TAG="0.0.0"
@@ -416,7 +412,7 @@ jobs:
416412
id: sign-cedarling
417413
run: |
418414
TAG=$(echo ${{ github.event.ref }} | cut -d '/' -f 3 | sed 's/^v//')
419-
VERSION="${TAG}"
415+
VERSION="$(echo ${{ github.event.ref }} | cut -d '/' -f 3)"
420416
if [ "${TAG}" == "nightly" ]; then
421417
VERSION=nightly
422418
TAG="0.0.0"

0 commit comments

Comments
 (0)