Link Checker #1278
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: Link Checker | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
repository_dispatch: | |
workflow_dispatch: | |
schedule: | |
- cron: "00 18 * * *" | |
jobs: | |
linkChecker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Link Checker | |
id: lychee | |
uses: lycheeverse/lychee-action@master | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
with: | |
args: --verbose --accept=200,429,403 --exclude-file .lycheeexclude --no-progress "**/*.md" --exclude-mail | |
continue-on-error: true | |
- name: Create Issue From File | |
if: always() && steps.lychee.conclusion != 'success' && github.event_name != 'pull_request' | |
uses: peter-evans/create-issue-from-file@main | |
with: | |
title: Link Checker Report | |
content-filepath: ./lychee/out.md | |
labels: report, automated issue |