Skip to content

Commit a0cecd4

Browse files
committed
build: add header and reorder columns
1 parent 307ccdc commit a0cecd4

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/markdown_links.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,15 @@ jobs:
115115
# Define the path to a utility for validating links:
116116
validate="${root}/lib/node_modules/@stdlib/_tools/links/validate/bin/cli"
117117
118+
echo "## Link Validation" >> $GITHUB_STEP_SUMMARY
119+
118120
output=$(echo '${{ steps.results.outputs.all_links }}' | ${validate})
119121
if [[ "${output}" != "All links are valid." ]]; then
120-
echo "| Error | ID | URL |" >> $GITHUB_STEP_SUMMARY
121-
echo "| ----- | -- | --- |" >> $GITHUB_STEP_SUMMARY
122+
echo "| URL | ID | Error |" >> $GITHUB_STEP_SUMMARY
123+
echo "| --- | -- | ----- |" >> $GITHUB_STEP_SUMMARY
122124
123125
echo "$output" | jq -r '.[] | [.error, .id, .url] | @tsv' | while IFS=$'\t' read -r error id url; do
124-
echo "| $error | $id | $url |" >> $GITHUB_STEP_SUMMARY
126+
echo "| $url | $id | $error |" >> $GITHUB_STEP_SUMMARY
125127
done
126128
else
127129
echo "$output"

0 commit comments

Comments
 (0)