Skip to content

Commit

Permalink
Broken link checker (#1977)
Browse files Browse the repository at this point in the history
Co-authored-by: Nikhil Ranjan <[email protected]>
  • Loading branch information
nikw3f and Nikhil Ranjan committed Sep 29, 2023
1 parent d0e15f6 commit 094d243
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/check_broken_links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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}}
with:
args: --verbose --no-progress !./applications/*

- 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 094d243

Please sign in to comment.