Check Links #260
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: Check Links | |
on: | |
push: | |
repository_dispatch: | |
workflow_dispatch: | |
schedule: | |
# Runs every Thursday at 20:23 GMT to avoid bit rot | |
- cron: "23 20 * * 4" | |
env: | |
USER_AGENT: "linux:lychee-action:@master (by /u/mre__)" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Link Checker | |
uses: lycheeverse/lychee-action@master | |
with: | |
args: -- '*.md' | |
fail: true | |
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 | |