@norskvideo/ctl-dev-kit 0.2.106 → 0.2.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -246,11 +246,18 @@ jobs:
|
|
|
246
246
|
# The image name is CI's own rule: PUBLISH_IMAGE when set, else the build
|
|
247
247
|
# script's IMAGE_TAG default, tag stripped -- a licence matches the repo
|
|
248
248
|
# part alone, never the tag.
|
|
249
|
+
#
|
|
250
|
+
# PRODUCT_NAME is read as smoke.yml reads it: an sdk-app keeps it in
|
|
251
|
+
# src/product/version.ts (norsk-relay) or shared/src/version.ts
|
|
252
|
+
# (norsk-conversion); the first that exists is read.
|
|
249
253
|
- name: Check this repo records its own licence
|
|
250
254
|
run: |
|
|
251
255
|
set -euo pipefail
|
|
252
|
-
|
|
253
|
-
[ -
|
|
256
|
+
vf=""
|
|
257
|
+
for f in shared/src/version.ts src/product/version.ts; do [ -f "$f" ] && { vf="$f"; break; }; done
|
|
258
|
+
[ -n "$vf" ] || { echo "::error::no shared/src/version.ts or src/product/version.ts"; exit 1; }
|
|
259
|
+
product="$(sed -nE 's/.*PRODUCT_NAME[[:space:]]*=[[:space:]]*"([^"]+)".*/\1/p' "$vf" | head -1)"
|
|
260
|
+
[ -n "$product" ] || { echo "::error::could not read PRODUCT_NAME from $vf"; exit 1; }
|
|
254
261
|
pub="$(sed -nE 's/^[[:space:]]*PUBLISH_IMAGE:[[:space:]]*"?([^" ]*)"?[[:space:]]*$/\1/p' .github/workflows/build-image.yml | head -1)"
|
|
255
262
|
def="$(sed -nE 's/.*IMAGE_TAG:-([^}]+)\}.*/\1/p' deployment/build-image.sh | head -1)"
|
|
256
263
|
ref="${pub:-$def}"
|