From ab1343bbb57fccfdde3cc1ce6716e7445597b3fc Mon Sep 17 00:00:00 2001 From: n15421 <124282010+xzfg-n15421@users.noreply.github.com> Date: Tue, 20 Aug 2024 19:08:16 +0800 Subject: [PATCH] Update default version of LeviLamina&&Refactor Get_BDS_Version --- .github/workflows/pack.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pack.yml b/.github/workflows/pack.yml index d4c2689..d29b657 100644 --- a/.github/workflows/pack.yml +++ b/.github/workflows/pack.yml @@ -6,7 +6,7 @@ on: LL_VER: description: 'LeviLamina version' required: true - default: '0.13.4' + default: '0.13.5' LSE: description: 'If include LSE' required: false @@ -40,7 +40,6 @@ jobs: Invoke-WebRequest -Uri https://github.com/futrime/lip/releases/latest/download/lip-windows-amd64.zip -Outfile .\scripts\lip.zip Invoke-WebRequest -Uri https://www.7-zip.org/a/7z2401-x64.exe -Outfile .\scripts\7z_installer.exe .\scripts\7z_installer.exe - Invoke-WebRequest -Uri https://github.com/jqlang/jq/releases/latest/download/jq-windows-amd64.exe -Outfile .\scripts\jq.exe unzip .\scripts\lip.zip -d .\scripts\ "$env:GITHUB_WORKSPACE\scripts" | Out-File -FilePath $env:GITHUB_PATH -Append @@ -73,7 +72,8 @@ jobs: id: get_bds_core_version working-directory: ll run: | - "bds_core_version=$(jq -r ".version" ".\.lip\metadata\github.com%2FLiteLDev%2Fbds.json")" | Out-File -FilePath $env:GITHUB_OUTPUT -Append + $res = Get-content -Raw -Path "./.lip/metadata/github.com%2FLiteLDev%2Fbds.json" |ConvertFrom-Json + "bds_core_version=$($res.version)" | Out-File -FilePath $env:GITHUB_OUTPUT -Append rm .\behavior_packs -Force -Recurse rm .\definitions -Force -Recurse rm .\resource_packs -Force -Recurse