Skip to content

Commit

Permalink
One more try with the parsing of outputs. Adding an id to pipeline ru…
Browse files Browse the repository at this point in the history
…n step
  • Loading branch information
kevinpalis committed Sep 26, 2024
1 parent 7c065f8 commit 87825ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test_illumina_genotyping_array.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
ls -lht
- name: Submit job, poll status, and get outputs
id: pipeline_run
run: |
# Set these environment variables
TOKEN="${{ steps.auth.outputs.access_token }}"
Expand Down Expand Up @@ -146,8 +147,8 @@ jobs:
echo "$OUTPUTS"
echo "outputs=$OUTPUTS" >> $GITHUB_OUTPUT # Write the outputs to GITHUB_OUTPUT
# Generate a markdown table for outputs
OUTPUTS_TABLE=$(echo "$OUTPUTS" | jq -r 'to_entries | ["Output | Value", "--- | ---"] + map(.key + " | " + (.value // "-")) | .[]')
# Generate a markdown table for outputs, handling null values
OUTPUTS_TABLE=$(echo "$OUTPUTS" | jq -r 'to_entries | ["Output | Value", "--- | ---"] + map(.key + " | " + (if .value == null then "-" else .value end)) | .[]')
- name: Print Summary on Success
if: success()
Expand Down

0 comments on commit 87825ad

Please sign in to comment.