Link Checker #171
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: Link Checker | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
link-checker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Link Checker | |
id: lychee | |
uses: lycheeverse/lychee-action@v1 | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
with: | |
args: --exclude-all-private './content/**/*.md' -u 'Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20100101 Firefox/10.0' --exclude http://sample-project-* mongodb:* http://$ | |
format: markdown | |
- name: Find Link Checker Issue | |
id: link-checker-issue | |
uses: micalevisk/last-issue-action@v2 | |
with: | |
state: open | |
labels: | | |
link-checker | |
- name: Update Issue | |
uses: peter-evans/create-issue-from-file@v4 | |
with: | |
title: Broken links detected in docs 🔗 | |
issue-number: "${{ steps.link-checker-issue.outputs.issue_number }}" | |
content-filepath: ./lychee/out.md | |
token: ${{secrets.GITHUB_TOKEN}} | |
labels: | | |
link-checker |