Skip to content

Commit

Permalink
ci: fix build packages
Browse files Browse the repository at this point in the history
Signed-off-by: moabu <[email protected]>
  • Loading branch information
moabu committed Dec 24, 2024
1 parent 8e9ba8e commit aa1b2ed
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit aa1b2ed

Please sign in to comment.