File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
src/content/docs/github_action_recipes Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -4,18 +4,6 @@ title: Check Links in Repository
44
55import CodeBlock from " ../../../components/code.astro" ;
66
7- This recipe demonstrates how to set up an automated workflow that will check all repository links once per day and create an issue in case of errors.
8-
9- The workflow is triggered in three scenarios:
10- Manual trigger via workflow_dispatch
11- Repository dispatch events
12- Automated schedule (runs daily at 18:00 UTC)
13- The workflow executes the following steps:
14- Checks out the repository using actions/checkout@v5
15- Runs the Lychee link checker (lycheeverse/lychee-action@v2) with fail: false to prevent workflow failure
16- If any broken links are detected (exit code != 0), creates a new GitHub issue using peter-evans/create-issue-from-file@v6
17- The issue contains the detailed report from ./lychee/out.md
18- Issues are labeled with “report” and “automated issue”
19- The workflow requires write permissions for issues to create automated reports when broken links are found.
7+ This recipe demonstrates how to set up an automated workflow that will check all repository links once per day.
208
219<CodeBlock file = " .github/workflows/check-links.yml" />
You can’t perform that action at this time.
0 commit comments