fix(release): strip Alchemy progress before parsing relay state (#12519)
This commit is contained in:
1 parent
4931d73af3
commit
e74c668d78
3 files changed
+85
-2
No files matched your search
@@ -314,14 +314,15 @@ jobs:
|
||||
# The deployed stack's outputs, read from Alchemy's state store without
|
||||
# planning or applying. Select the backend explicitly to avoid loading
|
||||
# the stack's unrelated provider credentials; suppress informational logs
|
||||
# so stdout stays valid JSON. Redacted values are persisted as
|
||||
# and strip the credential-refresh progress prefix before parsing JSON.
|
||||
# Redacted values are persisted as
|
||||
# {"__redacted__": "<value>"}; the token is masked before it is written.
|
||||
- name: Read production relay tracing config
|
||||
shell: bash
|
||||
working-directory: infra/relay
|
||||
run: |
|
||||
set -euo pipefail
|
||||
output="$(npx alchemy state read T3CodeRelay/prod/output --backend cloudflare --log-level error --no-input)"
|
||||
output="$(npx alchemy state read T3CodeRelay/prod/output --backend cloudflare --log-level error --no-input | sed -n '/^{/,$p')"
|
||||
field() {
|
||||
jq -er --arg key "$1" '.[$key] | if type == "object" then .__redacted__ else . end | select(. != null and . != "")' <<<"$output" \
|
||||
|| { echo "Relay stack output is missing $1" >&2; exit 1; }
|
||||
|
||||
Reference in new issue
Block a user