From bc616e6c74a1b7a9e4f25e64f5ae1cab191cf4f8 Mon Sep 17 00:00:00 2001 From: Florian Brinker Date: Fri, 20 Sep 2024 03:13:57 +0200 Subject: [PATCH] Change demo --- .gitea/workflows/release.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index a0cadfc..c0bb15b 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -20,12 +20,13 @@ jobs: rm -f sources/.luacheckrc - name: Set Version and AddonVersion run: | - export VERSION=${{ github.ref }} - export ADDON_VERSION=$(echo ${{ github.ref }} | sed -E 's/(0|)\.//g') + echo "Version: $GITHUB_REF_NAME" + export VERSION=$GITHUB_REF_NAME + export ADDON_VERSION=$(echo $GITHUB_REF_NAME | sed -E 's/(0|)\.//g') sed -i "s/0.123456789/$VERSION/g" sources/AchievementInfoCommon.lua sed -i "s/0.123456789/$VERSION/g" sources/AchievementInfo.txt sed -i "s/0.123456789/$ADDON_VERSION/g" sources/AchievementInfo.txt - name: Rename and zip run: | mv sources AchievementInfo - zip -r "AchievementInfo-${{ github.ref }}.zip" ./AchievementInfo \ No newline at end of file + zip -r "AchievementInfo-$GITHUB_REF_NAME.zip" ./AchievementInfo \ No newline at end of file