Skip to content

Commit

Permalink
Enhance error reporting with GitHub annotation groups
Browse files Browse the repository at this point in the history
  • Loading branch information
motlin committed Jun 22, 2024
1 parent ab75405 commit efa7b03
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ runs:
if [ -n "$MERGE_COMMITS" ]; then
echo "Failure: Found merge commits. Please refer to https://github.com/motlin/forbid-merge-commits-action#handling-failure-messages for guidance."
for COMMIT_HASH in $MERGE_COMMITS; do
echo "::group::Merge commit $COMMIT_HASH"
echo "::error::Merge commit found: $COMMIT_HASH"
git show $COMMIT_HASH
echo "::endgroup::"
done
exit 1
else
Expand Down

0 comments on commit efa7b03

Please sign in to comment.