From 819f938d0dd6c06a366f7d74c760d9b4f40902be Mon Sep 17 00:00:00 2001 From: Adam Pigg Date: Thu, 19 Oct 2023 18:51:24 +0100 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f961d28..5da1d44 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,9 +33,9 @@ jobs: - name: Build mic run: | - export VERSION=devel - export RELEASE=4.5.0.24 - export EXTRA_NAME=-alpha2 + export VERSION=$(echo $GITHUB_REF_NAME | cut -d "-" -f 2) + export RELEASE=$(echo $GITHUB_REF_NAME | cut -d "-" -f 3) + export EXTRA_NAME=-$(echo $GITHUB_REF_NAME | cut -d "-" -f 4-) docker run --rm --privileged --mount type=bind,src=$PWD,dst=/share --mount type=bind,src=/data,dst=/data --env-file env.list -e VERSION -e RELEASE -e EXTRA_NAME coderus/sailfishos-platform-sdk:$RELEASESDK /bin/bash -c " /share/scripts/create-image.sh --release $RELEASE --version $VERSION ;"