Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[steps] Do not trim step output value #502

Merged
merged 2 commits into from
Jan 23, 2025

Conversation

sjchmiela
Copy link
Contributor

@sjchmiela sjchmiela commented Jan 22, 2025

Why

I think we've been doing .trim() on output values because of plain echo in set-output.

How

Added -n to echo, removed .trim(). Then changed to use Base64 encoding as we do for environment variables.

Test Plan

Adjusted test. It was wrong all along! Passing of the rest of existing steps confirms steps work in general, right?

@sjchmiela sjchmiela marked this pull request as ready for review January 22, 2025 10:11
@sjchmiela sjchmiela requested a review from szdziedzic as a code owner January 22, 2025 10:11
Base automatically changed from stanley/eng-14784-hide-warning-about-missing-output-spec to main January 23, 2025 13:17
@sjchmiela sjchmiela force-pushed the stanley/do-not-trim-output-value branch from 83f9de3 to 51a3ea7 Compare January 23, 2025 13:28
@sjchmiela sjchmiela merged commit 049242d into main Jan 23, 2025
5 checks passed
@sjchmiela sjchmiela deleted the stanley/do-not-trim-output-value branch January 23, 2025 13:29
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