Skip to content

Commit

Permalink
Merge pull request #7 from xzfg-n15421/legacy
Browse files Browse the repository at this point in the history
Use jq to parse BDS version
  • Loading branch information
FTS427 authored Aug 19, 2024
2 parents 83d088e + fc270f7 commit 6332da6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ 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
Expand Down Expand Up @@ -72,7 +73,7 @@ jobs:
id: get_bds_core_version
working-directory: ll
run: |
"bds_core_version=$(python ..\scripts\get_bds_version.py)" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
"bds_core_version=$(jq -r ".version" ".\.lip\metadata\github.com%2FLiteLDev%2Fbds.json")" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
rm .\behavior_packs -Force -Recurse
rm .\definitions -Force -Recurse
rm .\resource_packs -Force -Recurse
Expand Down
23 changes: 0 additions & 23 deletions scripts/get_bds_version.py

This file was deleted.

0 comments on commit 6332da6

Please sign in to comment.