This repository was archived by the owner on Jan 18, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,12 @@ $SdkPath = $PkgRoot + "/io.improbable.worker.sdk"
1515$SdkMobilePath = $PkgRoot + " /io.improbable.worker.sdk.mobile"
1616$TestSdkPath = " test-project/Packages/io.improbable.worker.sdk.testschema"
1717
18- $SdkVersion = Get-Content ($SdkPath + " /.sdk.version" )
18+ if (Test-Path env:WORKER_SDK_OVERRIDE) {
19+ $SdkVersion = $env: WORKER_SDK_OVERRIDE ;
20+ } else {
21+ $SdkVersion = Get-Content ($SdkPath + " /.sdk.version" )
22+ }
23+
1924$SpotVersion = Get-Content ($SdkPath + " /.spot.version" )
2025
2126function UpdatePackage ($type , $identifier , $path , $removes )
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -e -u -o pipefail
33
4+ if [[ -n " ${DEBUG-} " ]]; then
5+ set -x
6+ fi
7+
48cd " $( dirname " $0 " ) "
59
610if [[ -n " ${1:- } " ]]; then
@@ -21,7 +25,12 @@ SDK_PATH="${PKG_ROOT}/io.improbable.worker.sdk"
2125SDK_MOBILE_PATH=" ${PKG_ROOT} /io.improbable.worker.sdk.mobile"
2226TEST_SDK_PATH=" test-project/Packages/io.improbable.worker.sdk.testschema"
2327
24- SDK_VERSION=" $( cat " ${SDK_PATH} " /.sdk.version) "
28+ if [[ -n " ${WORKER_SDK_OVERRIDE:- } " ]]; then
29+ SDK_VERSION=" ${WORKER_SDK_OVERRIDE} "
30+ else
31+ SDK_VERSION=" $( cat " ${SDK_PATH} " /.sdk.version) "
32+ fi
33+
2534SPOT_VERSION=" $( cat " ${SDK_PATH} " /.spot.version) "
2635
2736update_package () {
You can’t perform that action at this time.
0 commit comments