fix: link-checker args [sc-00] #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Vercel Preview URL Broken Link Checker | |
on: push | |
jobs: | |
check_broken_links: | |
timeout-minutes: 30 | |
runs-on: ubuntu-latest | |
steps: | |
- name: vercel-preview-url | |
uses: zentered/[email protected] | |
id: vercel_preview_url | |
env: | |
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | |
with: | |
vercel_project_id: 'QmSNiK5bcLmLnTeioXKfdE5uxVZ4Kh3nE7u6QLFKEfebM6' | |
vercel_team_id: 'team_AXvrWtvu32E0pksIZqnGmc78' | |
- name: DEBUG - Get URL | |
run: echo "https://${{ steps.vercel_preview_url.outputs.preview_url }}" | |
- name: Wait for Vercel Build | |
run: | | |
if [ "${{ steps.vercel_preview_url.outputs.deployment_state }}" != "READY" ]; then | |
sleep 180 | |
fi | |
- name: Check for broken links | |
id: link-report | |
uses: celinekurpershoek/[email protected] | |
with: | |
url: "https://${{ steps.vercel_preview_url.outputs.preview_url }}/docs" | |
honorRobotExclusions: false | |
ignorePatterns: "github,google" | |
recursiveLinks: true | |
- name: DEBUG - Get the result | |
run: echo "${{steps.link-report.outputs.result}}" | |
- uses: jwalton/gh-find-current-pr@v1 | |
id: finder | |
- name: Add comment to PR | |
id: comment_to_pr | |
uses: marocchino/sticky-pull-request-comment@v1 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
number: ${{ steps.finder.outputs.pr }} | |
header: Broken Links | |
message: | | |
${{steps.link-report.outputs.result}} |