Skip to content

Commit a5300cb

Browse files
Ditch matcher, output is too irregular
1 parent aefb79c commit a5300cb

File tree

3 files changed

+10
-25
lines changed

3 files changed

+10
-25
lines changed

action.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,9 @@ runs:
3636
${{ inputs.fawltydeps-version }}
3737
${{ inputs.requirements-files || inputs.requirementsFiles }}
3838
shell: bash
39-
- run: echo "::add-matcher::$GITHUB_ACTION_PATH/fawltydeps-matcher.json"
40-
shell: bash
4139
- id: run-fawltydeps
4240
run: >
4341
$GITHUB_ACTION_PATH/bin/run_fawltydeps
4442
${{ inputs.options }}
4543
${{ inputs.paths }}
4644
shell: bash
47-
- run: echo "::remove-matcher owner=fawltydeps-matcher::"
48-
shell: bash

bin/run_fawltydeps

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,16 @@ DELIMITER=$(echo $RANDOM | md5sum | head -c 20)
1616
} >> "${GITHUB_OUTPUT}"
1717

1818
if [[ "$exit_code" -eq 0 ]]; then
19-
echo "OK: fawltydeps :rocket:" > "$GITHUB_STEP_SUMMARY"
19+
echo "OK: 'fawltydeps $*' :rocket:" > "$GITHUB_STEP_SUMMARY"
2020
else
21-
echo "Error: fawltydeps found issues" > "$GITHUB_STEP_SUMMARY"
21+
{
22+
# shellcheck disable=SC2006
23+
cat <<EOF
24+
Error: 'fawltydeps $*' found issues:
25+
```
26+
${fawltydeps_result}
27+
```
28+
EOF
29+
} > "$GITHUB_STEP_SUMMARY"
2230
fi
2331
exit $exit_code

fawltydeps-matcher.json

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)