developer-portfolios/.github/workflows/link-checker.yml

28 lines
676 B
YAML
Raw Normal View History

2020-05-26 21:07:23 +00:00
on:
2023-02-25 23:12:45 +00:00
repository_dispatch:
workflow_dispatch:
schedule:
- cron: "00 18 * * 0"
2020-05-26 21:07:23 +00:00
name: Check markdown links
jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
2022-08-22 18:21:14 +00:00
- uses: actions/checkout@v3
2020-05-26 21:07:23 +00:00
- name: Link Checker
2022-08-22 18:21:14 +00:00
id: lychee
2023-02-25 23:12:45 +00:00
uses: lycheeverse/lychee-action@v1.6.1
2020-05-26 21:07:23 +00:00
with:
2023-02-25 23:12:45 +00:00
args: README.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2022-08-22 18:21:14 +00:00
2020-05-26 21:07:23 +00:00
- name: Create Issue From File
2023-02-25 23:12:45 +00:00
if: env.lychee_exit_code != 0
2022-08-22 18:21:14 +00:00
uses: peter-evans/create-issue-from-file@v4
2020-05-26 21:07:23 +00:00
with:
title: "[Bot] Broken Links Report"
content-filepath: ./lychee/out.md
2020-05-26 21:07:23 +00:00
labels: report