mirror of
https://github.com/sp-tarkov/build.git
synced 2025-02-13 06:50:45 -05:00
Refactor client version extraction in build.yaml
This commit is contained in:
parent
3ac63d0f18
commit
6f417af607
@ -152,9 +152,13 @@ jobs:
|
|||||||
- name: Extract Client Version
|
- name: Extract Client Version
|
||||||
run: |
|
run: |
|
||||||
cd ./server-core/project/assets/configs
|
cd ./server-core/project/assets/configs
|
||||||
CLIENT_VERSION=$(pwsh -Command "& {(\$json = Get-Content -Path './core.json' | ConvertFrom-Json); \$json.compatibleTarkovVersion.Split('.')[-1]}")
|
$ClientVersion = pwsh -Command "& {
|
||||||
echo "Extracted Client Version: $CLIENT_VERSION"
|
\$json = Get-Content -Path './core.json' | ConvertFrom-Json
|
||||||
echo "::set-output name=client_version::$CLIENT_VERSION"
|
\$version = \$json.compatibleTarkovVersion -split '\.' | Select-Object -Last 1
|
||||||
|
Write-Output \$version
|
||||||
|
}"
|
||||||
|
echo "Extracted Client Version: $ClientVersion"
|
||||||
|
echo "::set-output name=client_version::$ClientVersion"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
build-launcher:
|
build-launcher:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user