fix: resolve GITHUB_OUTPUT invalid format when no source files changed - #125
Closed
vigri wants to merge 3 commits into
Closed
fix: resolve GITHUB_OUTPUT invalid format when no source files changed#125vigri wants to merge 3 commits into
vigri wants to merge 3 commits into
Conversation
upgrade GitHub Actions to Node.js 24 compatible versions
Member
Author
|
The commit history got a bit messy — sorry about that. I've merged #124 into my fork. @pablogventura let me know if you'd prefer a clean PR instead. |
|
You’re right about the history — thanks for flagging it. If you can redo the branch with a clean history, that would be wonderful and much easier for everyone to review and bisect later. Thank you again for taking care of it (and for the Node 24 / Actions work alongside this fix). Kind regards |
Member
Author
👍 |
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
When no source files changed,
grep -cexits with code1, triggering|| echo 0. The trailing newline fromechobreaks the$GITHUB_OUTPUTformat:Fix
Replace
grep -c || echo 0with an explicit empty-string check and useprintffor cleankey=value\noutput.