You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Use configuration file for path remapping and settings
27
+
args: >-
28
+
--config lychee.toml
29
+
'content/**/*.md'
30
+
'content/**/*.mdx'
31
+
'README.md'
32
+
# Fail the job if broken links are found
33
+
fail: true
34
+
env:
35
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36
+
37
+
- name: Create Issue on Failure
38
+
if: failure()
39
+
uses: actions/github-script@v7
40
+
with:
41
+
script: |
42
+
github.rest.issues.create({
43
+
owner: context.repo.owner,
44
+
repo: context.repo.repo,
45
+
title: '🔗 Broken links detected in documentation',
46
+
body: `Link checker found broken links in the documentation.\n\nPlease review the [workflow run](${context.payload.repository.html_url}/actions/runs/${context.runId}) for details.`,
0 commit comments