We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 164cb09 commit 3423a5bCopy full SHA for 3423a5b
1 file changed
.github/workflows/markdown_links.yml
@@ -95,7 +95,17 @@ jobs:
95
# Define the path to a utility for validating links:
96
validate="${root}/lib/node_modules/@stdlib/_tools/links/validate/bin/cli"
97
98
- ${validate} '${{ steps.results.outputs.all_links }}'
+ output=$(echo '${{ steps.results.outputs.all_links }}' | ${validate})
99
+ if [[ "${output}" != "All links are valid." ]]; then
100
+ echo "| Error | ID | URL |" >> $GITHUB_STEP_SUMMARY
101
+ echo "| ----- | -- | --- |" >> $GITHUB_STEP_SUMMARY
102
+
103
+ echo "$output" | jq -r '.[] | [.error, .id, .url] | @tsv' | while IFS=$'\t' read -r error id url; do
104
+ echo "| $error | $id | $url |" >> $GITHUB_STEP_SUMMARY
105
+ done
106
+ else
107
+ echo "$output"
108
+ fi
109
110
# Log the results:
111
- name: 'Log results'
0 commit comments