Skip to content

Validate links

Validate links #476

name: Validate links
on:
pull_request: null
schedule:
- cron: 0 0 * * *
jobs:
link-checker:
runs-on: ubuntu-latest
permissions:
issues: write
contents: read
steps:
- uses: actions/checkout@v3
- name: Check links
id: lychee
uses: lycheeverse/[email protected]
- name: Create issue
if: env.lychee_exit_code != 0
uses: peter-evans/create-issue-from-file@v4
with:
title: Link checker report
labels: 'report, automated-issue'
content-filepath: ./lychee/out.md
- name: Assign issues and pull requests
if: env.lychee_exit_code != 0
uses: gustavofreze/[email protected]
with:
assignees: '${{ secrets.ASSIGNEES }}'
github_token: '${{ secrets.GITHUB_TOKEN }}'
allow_self_assign: 'true'
allow_no_assignees: 'true'
assignment_options: 'ISSUE'