From 24382d3fd1ff151447bc99b9bcbaace0802439b7 Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Fri, 12 Apr 2024 20:15:45 +0200 Subject: [PATCH] GHA: Fix demo has empty version file --- .github/workflows/demo.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index 49300f4..aefe7db 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -26,10 +26,12 @@ jobs: fetch-tags: true ref: ${{ inputs.limboai-ref }} + - name: Init version + run: echo "LIMBOAI_VERSION=$( (git describe --tags --exact-match HEAD || git rev-parse --short HEAD) | sed 's/\(.*\)-\(.*\)/\1.\2/g' )" >> "$GITHUB_ENV" + - name: Prepare artifact shell: bash run: | - echo "LIMBOAI_VERSION=$( (git describe --tags --exact-match HEAD || git rev-parse --short HEAD) | sed 's/\(.*\)-\(.*\)/\1.\2/g' )" >> "$GITHUB_ENV" cp {README,LICENSE}.md demo/ mkdir -p demo/addons/limboai/ cp -R icons/ demo/addons/limboai/icons