@norskvideo/ctl-dev-kit 0.2.28 → 0.2.29
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.
|
@@ -237,6 +237,18 @@ jobs:
|
|
|
237
237
|
if [ "$old_studio_img" != "$new_studio_img" ]; then
|
|
238
238
|
git grep -lF "norskvideo/norsk-studio:$old_studio_img" -- . ':!bun.lock' \
|
|
239
239
|
| xargs -r sed -i "s|norskvideo/norsk-studio:$old_studio_img|norskvideo/norsk-studio:$new_studio_img|g"
|
|
240
|
+
# And the tag on its own: a product can carry it unprefixed (onair2026's
|
|
241
|
+
# committed template input has `"studioTag": "<tag>"`), which the
|
|
242
|
+
# prefixed rewrite never reached -- the engine moved, studio did not,
|
|
243
|
+
# and the repo's own pin test went red (2026-10-04). Safe because the
|
|
244
|
+
# image tag and the npm library version are different strings; if
|
|
245
|
+
# they ever coincide, the bare rewrite would also hit the lib pins, so
|
|
246
|
+
# it is skipped and the lib rewrite below owns that string.
|
|
247
|
+
if [ "$old_studio_img" != "$old_studio_lib" ]; then
|
|
248
|
+
# `|| true`: after the prefixed rewrite most repos have no bare
|
|
249
|
+
# occurrence left, and git grep exits 1 on no match (pipefail).
|
|
250
|
+
{ git grep -lF "$old_studio_img" -- . ':!bun.lock' || true; } | xargs -r sed -i "s|$old_studio_img|$new_studio_img|g"
|
|
251
|
+
fi
|
|
240
252
|
changed=1
|
|
241
253
|
fi
|
|
242
254
|
if [ -n "$new_studio_lib" ] && [ "$old_studio_lib" != "$new_studio_lib" ]; then
|
|
@@ -319,6 +331,8 @@ jobs:
|
|
|
319
331
|
if: steps.bump.outputs.changed == '1' && steps.gate.outcome == 'success'
|
|
320
332
|
env:
|
|
321
333
|
API_TOKEN: ${{ secrets.CI_DISPATCH_TOKEN }}
|
|
334
|
+
# Through env, never pasted into the script (see the PR step below).
|
|
335
|
+
SUMMARY: ${{ steps.bump.outputs.summary }}
|
|
322
336
|
run: |
|
|
323
337
|
set -euo pipefail
|
|
324
338
|
# This bump is about to land, which makes any upgrade-latest/* PR an earlier
|
|
@@ -341,7 +355,7 @@ jobs:
|
|
|
341
355
|
git add -A
|
|
342
356
|
git commit -m "chore: bump Norsk nightly + ctl pins to latest channel
|
|
343
357
|
|
|
344
|
-
${
|
|
358
|
+
${SUMMARY}
|
|
345
359
|
|
|
346
360
|
Coupled Norsk pins (npm overrides + manifest.seed.json image tags +
|
|
347
361
|
version-pin guard test) moved together via a global version-string
|
|
@@ -371,6 +385,11 @@ jobs:
|
|
|
371
385
|
if: steps.bump.outputs.changed == '1' && steps.gate.outcome == 'failure'
|
|
372
386
|
env:
|
|
373
387
|
API_TOKEN: ${{ secrets.CI_DISPATCH_TOKEN }}
|
|
388
|
+
# Through env, never pasted into the script: the summary wraps each
|
|
389
|
+
# version in backticks, and inside a double-quoted shell string those
|
|
390
|
+
# ran as commands ("1.3.1-...: command not found"), dropping every
|
|
391
|
+
# version from the commit message and PR body.
|
|
392
|
+
SUMMARY: ${{ steps.bump.outputs.summary }}
|
|
374
393
|
run: |
|
|
375
394
|
set -euo pipefail
|
|
376
395
|
branch="upgrade-latest/nightly"
|
|
@@ -380,7 +399,7 @@ jobs:
|
|
|
380
399
|
git add -A
|
|
381
400
|
git commit -m "chore: bump Norsk nightly + ctl pins to latest channel (needs reconciliation)
|
|
382
401
|
|
|
383
|
-
${
|
|
402
|
+
${SUMMARY}"
|
|
384
403
|
git push -f origin "$branch"
|
|
385
404
|
title="Bump Norsk nightly + ctl pins to latest channel"
|
|
386
405
|
body="$(printf '%s\n' \
|
|
@@ -388,7 +407,7 @@ jobs:
|
|
|
388
407
|
"pins came with it -- but the product gate is **red**, so this bump needs a" \
|
|
389
408
|
"human before it reaches main." \
|
|
390
409
|
"" \
|
|
391
|
-
" ${
|
|
410
|
+
" ${SUMMARY}" \
|
|
392
411
|
"" \
|
|
393
412
|
"A red gate here usually means the new Norsk nightly is bad, or genuinely" \
|
|
394
413
|
"changed something the product depends on. Run it to see which:" \
|