Skip to content

Commit

Permalink
Add links checker github action
Browse files Browse the repository at this point in the history
  • Loading branch information
mesaugat committed Feb 26, 2024
1 parent 9cfaa67 commit f691ecc
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/links-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Links Checker

on:
pull_request:
branches:
- main

jobs:
link-checker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Link Checker
uses: lycheeverse/[email protected]
with:
fail: true
24 changes: 24 additions & 0 deletions .github/workflows/links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Links Cron

on:
repository_dispatch:
workflow_dispatch:
schedule:
- cron: '0 8 * * *'

jobs:
link-checker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Link Checker
id: lychee
uses: lycheeverse/[email protected]

- name: Create Issue From File
if: env.lychee_exit_code != 0
uses: peter-evans/create-issue-from-file@v5
with:
title: Link Checker Report
content-filepath: ./lychee/out.md

0 comments on commit f691ecc

Please sign in to comment.