File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ OUTPUT_FILE="aggregated_tested_versions.json"
12
12
RUNTIMES=(" 7.0" " 7.1" " 7.2" " 7.3" " 7.4" " 8.0" " 8.1" " 8.2" " 8.3" )
13
13
JOB_NAMES=()
14
14
for RUNTIME in " ${RUNTIMES[@]} " ; do
15
- JOB_NAMES+=(" integration-snapshots -test_integrations-${RUNTIME} " )
16
- JOB_NAMES+=(" integration-snapshots -test_web-${RUNTIME} " )
15
+ JOB_NAMES+=(" integration_snapshots -test_integrations-${RUNTIME} " )
16
+ JOB_NAMES+=(" integration_snapshots -test_web-${RUNTIME} " )
17
17
done
18
18
19
19
TEMP_DIR=$( mktemp -d)
@@ -24,13 +24,14 @@ trap cleanup EXIT
24
24
25
25
for JOB_NAME in " ${JOB_NAMES[@]} " ; do
26
26
echo " Processing job: ${JOB_NAME} "
27
- download_circleci_artifact " ${PROJECT_SLUG} " " ${WORKFLOW_NAME} " " ${JOB_NAME} " " ${ARTIFACT_PATTERN} " " ${TEMP_DIR} /${JOB_NAME} .json" 0
27
+ download_circleci_artifact " ${PROJECT_SLUG} " " ${WORKFLOW_NAME} " " ${JOB_NAME} " " ${ARTIFACT_PATTERN} " " ${TEMP_DIR} /${JOB_NAME} .json" false
28
28
done
29
29
30
30
echo " Aggregating JSON files..."
31
31
jq -s ' reduce .[] as $item ({};
32
- reduce (keys_unsorted | .[]) as $key ($item;
33
- $item[$key] += ($item[$key] // [] | unique)
32
+ . as $acc |
33
+ reduce ($item | to_entries[]) as $entry ($acc;
34
+ .[$entry.key] = (.[$entry.key] + $entry.value | unique)
34
35
)
35
36
)' " ${TEMP_DIR} " /* .json > " ${OUTPUT_FILE} "
36
37
You can’t perform that action at this time.
0 commit comments