Skip to content

Commit

Permalink
Ditch matcher, output is too irregular
Browse files Browse the repository at this point in the history
  • Loading branch information
obscurerichard committed May 14, 2024
1 parent aefb79c commit a5300cb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 25 deletions.
4 changes: 0 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,9 @@ runs:
${{ inputs.fawltydeps-version }}
${{ inputs.requirements-files || inputs.requirementsFiles }}
shell: bash
- run: echo "::add-matcher::$GITHUB_ACTION_PATH/fawltydeps-matcher.json"
shell: bash
- id: run-fawltydeps
run: >
$GITHUB_ACTION_PATH/bin/run_fawltydeps
${{ inputs.options }}
${{ inputs.paths }}
shell: bash
- run: echo "::remove-matcher owner=fawltydeps-matcher::"
shell: bash
12 changes: 10 additions & 2 deletions bin/run_fawltydeps
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,16 @@ DELIMITER=$(echo $RANDOM | md5sum | head -c 20)
} >> "${GITHUB_OUTPUT}"

if [[ "$exit_code" -eq 0 ]]; then
echo "OK: fawltydeps :rocket:" > "$GITHUB_STEP_SUMMARY"
echo "OK: 'fawltydeps $*' :rocket:" > "$GITHUB_STEP_SUMMARY"
else
echo "Error: fawltydeps found issues" > "$GITHUB_STEP_SUMMARY"
{
# shellcheck disable=SC2006
cat <<EOF
Error: 'fawltydeps $*' found issues:
```
${fawltydeps_result}
```
EOF
} > "$GITHUB_STEP_SUMMARY"
fi
exit $exit_code
19 changes: 0 additions & 19 deletions fawltydeps-matcher.json

This file was deleted.

0 comments on commit a5300cb

Please sign in to comment.