[Bug] fix invalid YAML in release workflow heredoc causing startup failures#191
Merged
samatstariongroup merged 1 commit intoJun 29, 2026
Merged
Conversation
|
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.




Problem
The
Nuget-Releaseworkflow was running on every push (as failed runs), no longer showed the manual "Run workflow" button, and appeared in the Actions UI as.github/workflows/nuget-release.ymlinstead ofNuget-Release.Root cause: the workflow file is invalid YAML. In the Generate THIRD-PARTY-NOTICES.txt step the heredoc body and its
EOFterminator sit at column 0, but they live inside arun: |block scalar indented 10 spaces. A line less-indented than the block terminates the YAML scalar, so the parser then tries to read------,.NET Runtime,https://…as workflow structure and fails.A single invalid file produces all three symptoms:
on: workflow_dispatchname:Introduced in #182 (commit
b3c3b4f1) when the THIRD-PARTY-NOTICES block was added — exactly when manual dispatch stopped working.Fix
Replace the
cat <<'EOF'heredoc with an indentedprintfthat produces byte-identical output. A heredoc can't be used here cleanly: itsEOFterminator must be at column 0 (which breaks the YAML), and<<-only strips tabs (banned by the project style). Withprintf, every line stays inside the block scalar, so the file is valid YAML and bash output is unchanged.Verification (after merge to
development)The release entry should now show
name: Nuget-Release(not the path). Then push a commit and confirm no new startup-failure run is created, and that the "Run workflow" dropdown appears in the Actions tab.