这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 24, 2025

Problem

The GitHub Actions release workflow was failing with the error:

##[error]Unable to process file command 'output' successfully.
##[error]Invalid value. Matching delimiter not found 'EOF'

This was occurring in the create-release job when attempting to set the RELEASE_BODY output variable using a heredoc to capture the commit history.

Root Cause

In .github/workflows/release.yml at line 84, the heredoc closing delimiter was incorrectly quoted:

{
  echo "RELEASE_BODY<<EOF"
  cat ./chaiNNer/history.txt
  echo "EOF"  # ❌ Incorrect - quotes prevent delimiter recognition
} >> $GITHUB_OUTPUT

When using heredoc syntax in bash, the closing delimiter must match exactly how it was opened. Since the opening delimiter RELEASE_BODY<<EOF has no quotes around EOF, the closing delimiter must also be unquoted.

Solution

Removed the quotes from the closing delimiter:

{
  echo "RELEASE_BODY<<EOF"
  cat ./chaiNNer/history.txt
  echo EOF  # ✅ Correct - matches opening delimiter
} >> $GITHUB_OUTPUT

This allows GitHub Actions to properly parse the heredoc and set the output variable with the multiline commit history content.

Testing

  • ✅ Code review passed with no comments
  • ✅ Security scan (CodeQL) passed with no alerts
  • The fix follows GitHub's documented heredoc syntax for multiline outputs
Original prompt

This section details on the original issue you should resolve

<issue_title>Workflow fails</issue_title>
<issue_description>The release workflow fails, EOF is not found </issue_description>

Comments on the Issue (you are @copilot in this section)


💡 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.

Co-authored-by: joeyballentine <34788790+joeyballentine@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix release workflow failure due to EOF Fix EOF delimiter in release workflow heredoc Oct 24, 2025
Copilot AI requested a review from joeyballentine October 24, 2025 17:34
Copilot finished work on behalf of joeyballentine October 24, 2025 17:34
@joeyballentine joeyballentine marked this pull request as ready for review October 24, 2025 17:36
@joeyballentine joeyballentine merged commit 239d229 into main Oct 24, 2025
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.

Workflow fails

2 participants