Skip to content

Add error message display to release workflow step summary#99

Merged
rajbos merged 4 commits intomainfrom
copilot/show-error-message-on-failure
Jan 6, 2026
Merged

Add error message display to release workflow step summary#99
rajbos merged 4 commits intomainfrom
copilot/show-error-message-on-failure

Conversation

Copy link
Contributor

Copilot AI commented Jan 4, 2026

Release workflow failures were only visible in raw logs. Error messages now display in the GitHub Actions step summary for immediate visibility.

Changes

  • Create Release step: Added continue-on-error: true with set -o pipefail to capture error output to /tmp/release_output.txt while preserving exit codes
  • Release Summary step: Now runs on both success and failure (if: always()), checks steps.create_release.outcome, and writes formatted status to $GITHUB_STEP_SUMMARY
  • On failure: Displays version, tag, and full error details in markdown code block, then exits 1 to fail the workflow
  • On success: Displays release details with clickable link

Example Output

When release creation fails (e.g., duplicate tag):

# ❌ Release Creation Failed

**Version:** 0.0.5
**Tag:** v0.0.5

## Error Details

HTTP 422: Validation Failed
release.tag_name already exists

Original prompt

When the release workflow fails, show the error message in the step summary as well. check run logs here: https://github.com/rajbos/github-copilot-token-usage/actions/runs/20699674127/job/59420034711


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits January 4, 2026 22:01
Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
Copilot AI changed the title [WIP] Show error message in step summary on release workflow failure Add error message display to release workflow step summary Jan 4, 2026
Copilot AI requested a review from rajbos January 4, 2026 22:07
@rajbos rajbos marked this pull request as ready for review January 6, 2026 08:13
@rajbos rajbos merged commit f58d08a into main Jan 6, 2026
13 checks passed
@rajbos rajbos deleted the copilot/show-error-message-on-failure branch January 6, 2026 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments