Check Broken Links #13
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: Check Broken Links | |
on: | |
schedule: | |
- cron: '0 10 1,15 * *' # Run on 1st and 15th days of every month at 10:00 UTC | |
workflow_dispatch: # Allow manual triggering of the workflow | |
jobs: | |
check_links: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Link Checker | |
id: lychee | |
uses: lycheeverse/[email protected] | |
with: | |
args: --accept 501 --exclude-loopback --verbose --no-progress --exclude '^.*(%7D)$' './**/*.json' './**/*.md' | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: Create Issue From File | |
if: env.lychee_exit_code != 0 | |
uses: peter-evans/create-issue-from-file@v4 | |
with: | |
title: Link Checker Report | |
content-filepath: ./lychee/out.md | |
labels: report, automated issue |