mirror of
https://github.com/sp-tarkov/build.git
synced 2025-02-13 06:50:45 -05:00
Add step to extract client version in build workflow
This commit is contained in:
parent
3b5962c550
commit
107be5173a
@ -150,6 +150,7 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Extract Client Version
|
- name: Extract Client Version
|
||||||
|
id: extract-client-version
|
||||||
run: |
|
run: |
|
||||||
cd ./server-core/project/assets/configs
|
cd ./server-core/project/assets/configs
|
||||||
FULL_VERSION=$(jq -r '.compatibleTarkovVersion' core.json)
|
FULL_VERSION=$(jq -r '.compatibleTarkovVersion' core.json)
|
||||||
@ -161,11 +162,11 @@ jobs:
|
|||||||
- name: Download Client Module Package
|
- name: Download Client Module Package
|
||||||
run: |
|
run: |
|
||||||
DIR_MANAGED="./modules/project/Shared/Managed"
|
DIR_MANAGED="./modules/project/Shared/Managed"
|
||||||
DOWNLOAD_PATH="$DIR_MANAGED/${{ 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/${{ needs.fetch-server-core-config.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"
|
echo "Downloading Client Module Package from $DOWNLOAD_URL to $DOWNLOAD_PATH"
|
||||||
mkdir -p "$DIR_MANAGED"
|
mkdir -p "$DIR_MANAGED"
|
||||||
wget -O "$DOWNLOAD_PATH" "$DOWNLOAD_URL" || {
|
wget -q -O "$DOWNLOAD_PATH" "$DOWNLOAD_URL" || {
|
||||||
echo "Failed to download the module package."
|
echo "Failed to download the module package."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user