Skip to content

Commit

Permalink
Group merge output
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref committed Feb 21, 2024
1 parent c945e08 commit 8a08c48
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions merge
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ git fetch origin "$INPUT_HEAD_REF" ||
report_failure "Can't get head_ref ($INPUT_HEAD_REF). Please contact support for $GITHUB_ACTION_REPOSITORY"

GITHUB_HEAD_SHA=$(git rev-parse FETCH_HEAD)
git merge -m "Merge $GITHUB_HEAD_SHA into $GITHUB_BASE_SHA" FETCH_HEAD ||
report_failure "Can't generate merge; there's probably a conflict. Resolve it to get workflow feedback."
echo '::group::Merging'
git merge -m "Merge $GITHUB_HEAD_SHA into $GITHUB_BASE_SHA" FETCH_HEAD &&
echo '::endgroup::' ||
report_failure "Can't generate merge; there's probably a conflict. Resolve it to get workflow feedback." &&
echo '::endgroup::'

echo 'status=success' >> "$GITHUB_OUTPUT"

0 comments on commit 8a08c48

Please sign in to comment.