Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 7 additions & 44 deletions .github/workflows/md-link-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,51 +2,14 @@ name: Check Markdown links

on: push

permissions:
contents: read

jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: gaurav-nelson/github-action-markdown-link-check@v1

# name: Markdown Link Check

# on:
# push:
# pull_request:
# branches:
# - dev

# jobs:
# link-check:
# runs-on: ubuntu-22.04
# env:
# CI: true
# steps:
# - name: Setup Action
# uses: actions/checkout@master
# # - name: Setup Node
# # uses: actions/setup-node@v4
# # with:
# # node-version: 12.x
# - name: Install dependencies
# run: npm install
# - name: Run link check
# run: npm run link-check
# - name: Show broken links
# if: failure()
# run: |
# cat log | awk -v RS="FILE:" 'match($0, /(\S*\.md).*\[✖\].*(\d*\slinks\schecked\.)(.*)/, arr ) { print "FILE:"arr[1] arr[3] > "brokenlinks"}'
# rm -f err log
# cat brokenlinks
# links=`cat brokenlinks`
# links="${links//'%'/'%25'}"
# links="${links//$'\n'/'%0A'}"
# links="${links//$'\r'/'%0D'}"
# echo ::set-output name=links::**Following links are broken:** %0A$links
# - name: Send comment to PR with broken links
# if: failure() && github.event_name == 'pull_request'
# uses: thollander/actions-comment-pull-request@main
# with:
# message: ${{ steps.brokenlinks.outputs.links }}
# # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: gaurav-nelson/github-action-markdown-link-check@5c5dfc0ac2e225883c0e5f03a85311ec2830d368 # v1
with:
config-file: markdown-link-check-config.json
Loading