Skip to content

Commit

Permalink
Broken link checker
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikhil Ranjan committed Sep 18, 2023
1 parent 8398981 commit 603f8a1
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/check_broken_links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Broken Links

on:
repository_dispatch:
workflow_dispatch:
schedule:
- cron: '0 0 1 * *' # Trigger the workflow every month

jobs:
build_and_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Link Checker
id: lychee
uses: lycheeverse/[email protected]
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

0 comments on commit 603f8a1

Please sign in to comment.