Skip to content

Commit 04864c8

Browse files
authored
[CI] Clean up link checker workflow (#2976)
1 parent 85270fe commit 04864c8

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

.github/workflows/links.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ on:
2424
repository_dispatch:
2525
workflow_dispatch:
2626
pull_request:
27-
schedule:
28-
- cron: '7 1 * * 0' # At 01:07 on Sunday.
2927

3028
jobs:
3129
check-links:
@@ -42,21 +40,3 @@ jobs:
4240
with:
4341
args: --config lychee.toml .
4442
fail: false
45-
46-
- name: Broken Links Report
47-
if: steps.lychee.outputs.exit_code != 0 && github.event_name == 'schedule'
48-
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
49-
with:
50-
script: |
51-
const fs = require('fs');
52-
53-
// Read the markdown file
54-
// Ensure the path is correct relative to the workspace root
55-
const reportBody = fs.readFileSync('./lychee/out.md', 'utf8');
56-
57-
await github.rest.issues.create({
58-
owner: context.repo.owner,
59-
repo: context.repo.repo,
60-
title: 'Broken Links Report',
61-
body: reportBody
62-
});

0 commit comments

Comments
 (0)