Skip to content

Commit

Permalink
fix: update comment output [sc-00]
Browse files Browse the repository at this point in the history
  • Loading branch information
ndom91 committed Oct 12, 2023
1 parent d17203b commit bbb34a6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/link-checker/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'broken-link-check'
description: 'Find broken links, missing images, etc within your HTML.'
description: 'Find broken links, missing images, etc within your HTML. From celinekurpershoek/link-checker.'
author: 'Celine Kurpershoek'
branding:
icon: 'anchor'
Expand Down
5 changes: 4 additions & 1 deletion .github/link-checker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ then
LINKS=$(grep -E 'BROKEN' <<< "$OUTPUT" | awk '{print "[✗] " $2 "\n" }')
echo "$LINKS"
echo -e "$PURPLE ============================== $NC"
echo "result=$RESULT\n$LINKS" >> "$GITHUB_OUTPUT"
echo "result<<EOF" >> "$GITHUB_OUTPUT"
echo "$RESULTS\n\n" >> "$GITHUB_OUTPUT"
echo "$LINKS" >> "$GITHUB_OUTPUT"
echo "EOF" >> "$GITHUB_OUTPUT"
exit 1
elif [ "$TOTAL_COUNT" == 0 ]
then
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/broken-link-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@ jobs:
- uses: actions/checkout@v3
- name: Check for broken links
id: link-report
# uses: celinekurpershoek/[email protected]
uses: './.github/link-checker'
continue-on-error: true
with:
url: "https://${{ steps.vercel_preview_url.outputs.preview_url }}/docs"
honorRobotExclusions: false
ignorePatterns: "github,google,vercel.com,checklyhq.com,stripe.com,playwright.dev,visualstudio.com,npmjs.com,twitter.com,aka.ms,cloudflare.com,terraform.io"
ignorePatterns: "acme.com,nodejs.org,pptr.dev,placehold.co,herokuapp.com,github,google,vercel.com,checklyhq.com,stripe.com,playwright.dev,visualstudio.com,npmjs.com,twitter.com,aka.ms,cloudflare.com,terraform.io"
recursiveLinks: true
- name: DEBUG - Get the result
run: echo "${{steps.link-report.outputs.result}}"
Expand Down

0 comments on commit bbb34a6

Please sign in to comment.