-
-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Labels
help wantedExtra attention is neededExtra attention is needed
Description
Related: lycheeverse/lychee#1637
This is what I got working:
.github/lychee-problem-matcher.json:
{
"problemMatcher": [
{
"owner": "lychee",
"pattern": [
{
"regexp": "^\\[(.*)\\]:$",
"file": 1
},
{
"regexp": "^\\s*\\[ERROR\\] (.*)$",
"message": 1,
"loop": true
}
]
}
]
} - run: echo "::add-matcher::.github/lychee-problem-matcher.json"
- name: Link Checker
if: ${{ steps.changed-files.outputs.all_changed_files }}
uses: lycheeverse/[email protected]
with:
fail: true
args: --root-dir $(pwd) -E -i -n -t 45 -- '${{ steps.changed-files.outputs.all_changed_files }}'
format: compact
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
NO_COLOR: 1Resulting in this:
However the line number is missing in the output, so the annotation doesn't get added to the right place in the file
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed

