Skip to content

Commit 527aa2f

Browse files
committed
API-284: Trying to bq load
1 parent d2f8156 commit 527aa2f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/store-api-spec-lint-results.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ jobs:
141141
results=$(jq --arg src "$src" '[.[] | select(.source == $src) | {rule: .code, severity: .severity}]' lint-result.json)
142142
143143
# Build a row JSON object with the extracted service name and the result array
144-
row=$(jq -n \
144+
row=$(jq -nc \
145145
--arg service "$service" \
146146
--argjson results "$results" \
147147
--arg spec_hash "$computed_spec_hash" \
@@ -152,9 +152,9 @@ jobs:
152152
rows_array+=("$row")
153153
done <<< "$sources"
154154
155-
printf '%s\n' "${rows_array[@]}" > transformed.json
155+
printf '%s\n' "${rows_array[@]}" > transformed.ndjson
156156
157-
cat transformed.json
157+
cat transformed.ndjson
158158
159159
- name: Write to BigQuery
160160
if: steps.check-hashes.outputs.changes == 'true'
@@ -166,4 +166,4 @@ jobs:
166166
--autodetect \
167167
--project_id=ent-apidata-dev \
168168
ent-apidata-dev:api.rest_api_lint \
169-
transformed.json
169+
transformed.ndjson

0 commit comments

Comments
 (0)