From 021c9fbd71fd971609b19ffba1e2f2a150d60470 Mon Sep 17 00:00:00 2001 From: Kevin Palis Date: Thu, 26 Sep 2024 01:35:09 -0400 Subject: [PATCH] Better summary formatting --- .github/workflows/test_illumina_genotyping_array.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_illumina_genotyping_array.yml b/.github/workflows/test_illumina_genotyping_array.yml index 385a18fa0e..5f2f8509ff 100644 --- a/.github/workflows/test_illumina_genotyping_array.yml +++ b/.github/workflows/test_illumina_genotyping_array.yml @@ -149,6 +149,8 @@ jobs: # Handle null values, strings, and numbers in the outputs by converting everything to a string and replacing null with '-' OUTPUTS_TABLE=$(echo "$OUTPUTS" | jq -r 'to_entries | ["Output | Value", "--- | ---"] + map(.key + " | " + (if .value == null then "-" else (.value | tostring) end)) | .[]') + #print outputs table to stdout + echo "$OUTPUTS_TABLE" - name: Print Summary on Success if: success() @@ -165,7 +167,7 @@ jobs: echo "## Workflow Outputs" >> $GITHUB_STEP_SUMMARY echo "\`\`\`" >> $GITHUB_STEP_SUMMARY - echo "${{ steps.pipeline_run.outputs.outputs }}" | jq . >> $GITHUB_STEP_SUMMARY + echo "${{ steps.pipeline_run.outputs.outputs }}" >> $GITHUB_STEP_SUMMARY echo "\`\`\`" >> $GITHUB_STEP_SUMMARY - name: Print Summary on Failure @@ -183,5 +185,5 @@ jobs: echo "## Workflow Outputs (if available)" >> $GITHUB_STEP_SUMMARY echo "\`\`\`" >> $GITHUB_STEP_SUMMARY - echo "${{ steps.pipeline_run.outputs.outputs }}" | jq . >> $GITHUB_STEP_SUMMARY + echo "${{ steps.pipeline_run.outputs.outputs }}" >> $GITHUB_STEP_SUMMARY echo "\`\`\`" >> $GITHUB_STEP_SUMMARY \ No newline at end of file