0
0
mirror of https://github.com/sp-tarkov/build.git synced 2025-02-13 03:10:46 -05:00

Add step to extract client version in build workflow

This commit is contained in:
Refringe 2024-03-03 18:37:06 -05:00
parent 3b5962c550
commit 107be5173a
No known key found for this signature in database
GPG Key ID: DA8524051241DD36

View File

@ -150,6 +150,7 @@ jobs:
shell: bash
- name: Extract Client Version
id: extract-client-version
run: |
cd ./server-core/project/assets/configs
FULL_VERSION=$(jq -r '.compatibleTarkovVersion' core.json)
@ -161,11 +162,11 @@ jobs:
- name: Download Client Module Package
run: |
DIR_MANAGED="./modules/project/Shared/Managed"
DOWNLOAD_PATH="$DIR_MANAGED/${{ needs.fetch-server-core-config.outputs.client_version }}.zip"
DOWNLOAD_URL="$MODULE_DOMAIN/${{ needs.fetch-server-core-config.outputs.client_version }}.zip"
DOWNLOAD_PATH="$DIR_MANAGED/${{ steps.extract-client-version.outputs.client_version }}.zip"
DOWNLOAD_URL="$MODULE_DOMAIN/${{ steps.extract-client-version.outputs.client_version }}.zip"
echo "Downloading Client Module Package from $DOWNLOAD_URL to $DOWNLOAD_PATH"
mkdir -p "$DIR_MANAGED"
wget -O "$DOWNLOAD_PATH" "$DOWNLOAD_URL" || {
wget -q -O "$DOWNLOAD_PATH" "$DOWNLOAD_URL" || {
echo "Failed to download the module package."
exit 1
}