File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 repository_dispatch :
2525 workflow_dispatch :
2626 pull_request :
27- schedule :
28- - cron : ' 7 1 * * 0' # At 01:07 on Sunday.
2927
3028jobs :
3129 check-links :
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- });
You can’t perform that action at this time.
0 commit comments