fix(ci): use shell var for jq --arg title in deploy steps (CAR-1436) #44

Merged
Barcode Betty merged 1 commits from car-1436-fix-deploy-jq-title into dev 2026-06-22 23:57:00 +00:00
Member

CAR-1436 — Fix bash syntax error in deploy-dev/deploy-uat PR body construction

Problem

The --arg title (...) form in the jq call uses GitHub-Actions expression syntax (env.GITHUB_SHA[:12]) inside a bash run: block. The bare ( opens a subshell → syntax error near unexpected token — the script dies in ~1s before the infra PR-creation curl ever executes.

Fix

Extract title to a shell variable (TITLE=) using the ${GITHUB_SHA::12} bash slice syntax already used in the git commit -m line two lines above, in BOTH deploy-dev (line 145) and deploy-uat steps.

Verification

After promotion to uat, the deploy-uat step should pass jq construction and reach the infra PR-creation call (creating an infra PR with base uat).

cc @cpfarhood

## CAR-1436 — Fix bash syntax error in deploy-dev/deploy-uat PR body construction ### Problem The `--arg title (...)` form in the `jq` call uses GitHub-Actions expression syntax (`env.GITHUB_SHA[:12]`) inside a bash `run:` block. The bare `(` opens a subshell → `syntax error near unexpected token` — the script dies in ~1s before the infra PR-creation `curl` ever executes. ### Fix Extract title to a shell variable (`TITLE=`) using the `${GITHUB_SHA::12}` bash slice syntax already used in the `git commit -m` line two lines above, in BOTH `deploy-dev` (line 145) and `deploy-uat` steps. ### Verification After promotion to `uat`, the deploy-uat step should pass jq construction and reach the infra PR-creation call (creating an infra PR with base `uat`). cc @cpfarhood
Barcode Betty added 1 commit 2026-06-22 23:56:20 +00:00
fix: use shell var for jq --arg title in deploy-dev/deploy-uat (CAR-1436)
CI / build-and-push (pull_request) Has been skipped
CI / deploy-dev (pull_request) Has been skipped
CI / deploy-uat (pull_request) Has been skipped
80a2ea54be
Barcode Betty merged commit 28d38a298c into dev 2026-06-22 23:57:00 +00:00
Sign in to join this conversation.