fix: resolve upstream-sync.yml workflow failures#25
Merged
bashandbone merged 2 commits intomainfrom Mar 5, 2026
Merged
Conversation
- Add trailing newline to _upstream_agent_prompt.md (POSIX convention, prevents delimiter from being appended to last content line in GITHUB_ENV) - Add printf '\n' before delimiter echo in Setup Environment step for defensive robustness against files without trailing newlines - Fix Create MCP Config heredoc: align EOF at same YAML indentation level as the cat command so it appears at column 0 after YAML processing, preventing bash from reading until end-of-file and producing invalid JSON Co-authored-by: bashandbone <89049923+bashandbone@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix failure in upstream-sync.yml action
fix: resolve upstream-sync.yml workflow failures
Mar 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two bugs caused the
upstream-sync.ymlworkflow to fail at the Setup Environment step withInvalid value. Matching delimiter not found 'UPSTREAM_PROMPT_DELIMITER', and a silent invalid-JSON bug in Create MCP Config.Changes
_upstream_agent_prompt.md— add trailing newline (POSIX convention). Without it,catoutput the file flush against the heredoc delimiter, so GitHub Actions couldn't locateUPSTREAM_PROMPT_DELIMITERon its own line when parsing$GITHUB_ENV.Setup Environmentstep — addprintf '\n'before the delimiter echo as a defensive guard against any future file lacking a trailing newline:cat "$GITHUB_WORKSPACE/.github/_upstream_agent_prompt.md" + printf '\n' echo 'UPSTREAM_PROMPT_DELIMITER'Create MCP Configstep — fix heredocEOFindentation. TheEOFmarker was indented 2 spaces relative tocatin YAML, so after YAML block-scalar stripping it becameEOFin the shell script — not at column 0, so bash read until end-of-file and appendedEOFto the JSON, producing invalid output. Fix alignsEOFto the same YAML indentation level ascatso it lands at column 0 post-stripping.✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.