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