From 2a61a876eff9085b99cfa882dcfc67e25ce5c96d Mon Sep 17 00:00:00 2001 From: Xikaro <0regon.end@gmail.com> Date: Thu, 16 Nov 2023 17:51:18 +0500 Subject: [PATCH] Update preview.yml --- .github/workflows/preview.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index e32de2c7..73dee59b 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -14,7 +14,7 @@ jobs: - name: Get the version id: get_version - run: echo ::set-output name=version::${GITHUB_REF#refs/tags/R} + run: echo ::set-output name=version::${GITHUB_REF#refs/tags/Pre*-R} - name: Changelog Parser id: changelog @@ -28,9 +28,10 @@ jobs: - name: Set the version run: | DEV=${{ steps.get_version.outputs.version }} - sed -i -e "s/DEV/123/g" manifest.json - sed -i -e "s/DEV/123/g" instance.cfg - sed -i -e "s/DEV/123/g" .minecraft/config/fancymenu/customization/main_menu.txt + echo $DEV + sed -i -e "s/DEV/${DEV}/g" manifest.json + sed -i -e "s/DEV/${DEV}/g" instance.cfg + sed -i -e "s/DEV/${DEV}/g" .minecraft/config/fancymenu/customization/main_menu.txt - name: Archive Release MMC run: zip -r TerraFirmaGreg-1.20-${{ steps.get_version.outputs.version }}-mmc.zip mmc-pack.json instance.cfg .minecraft/