Skip to content

Commit

Permalink
fix: json formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpwang committed Jan 6, 2025
1 parent 8dff4ff commit 3fb4336
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,14 @@ jobs:

- name: Download all metric json files from S3
run: |
json_files=$(echo '${{ needs.create-matrix.outputs.matrix }}' | jq -r '
matrix=$(echo '${{ needs.create-matrix.outputs.matrix }}')
json_files=$(echo $matrix | jq -r '
.[] |
"\(.id)-${{ env.CURRENT_SHA }}.json"')
json_file_list=$(echo -n "$json_files" | paste -sd "," -)
echo $json_file_list
prev_json_files=$(echo '${{ needs.create-matrix.outputs.matrix }}' | jq -r '
prev_json_files=$(echo $matrix | jq -r '
.[] |
"main-\(.id).json"')
prev_json_file_list=$(echo -n "$prev_json_files" | paste -sd "," -)
Expand Down Expand Up @@ -236,13 +237,12 @@ jobs:
# Convert .json to .md
md_path="${metric_path%.json}.md"
matrix=${{ needs.create-matrix.outputs.matrix }}
add_metadata_and_flamegraphs \
"$metric_path" \
"$md_path" \
"$matrix" \
"$COMMIT_URL" \
"$BENCHMARK_WORKFLOW_URL"
$metric_path \
$md_path \
$matrix \
$COMMIT_URL \
$BENCHMARK_WORKFLOW_URL
cp "$md_path" "${TMP_DIR}/"
done <<< "$json_files"
Expand Down

0 comments on commit 3fb4336

Please sign in to comment.