We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
My team has code like:
core.setOutput("test_db_migrations", testDbMigrations ? 1 : 0);
This broke with the 1.2.2 release because it expects the output to be a string.
The error is: TypeError: (s || "").replace is not a function and occurs at node_modules/@actions/core/lib/command.js:66:10).
TypeError: (s || "").replace is not a function
node_modules/@actions/core/lib/command.js:66:10)
To Reproduce
Try to set a number as output.
Expected behavior
The library could do a .toString(), or I recommend at least updating the README to make it clear that the output value has to be a string.
.toString()
Screenshots
N/A
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered:
What if I want to return an object?
Sorry, something went wrong.
setOutput does not support objects. You can set it to a stringified object, but then have to parse it later
setOutput
fix: cast objects to string actions/toolkit#321
cd4675a
Downgrade @actions/core due to the bug
898023f
actions/toolkit#321
Merge pull request #28 from urbanmedia/master
59c12d0
Add pull request number, Add String cast to fix bug: actions/toolkit#321
Resolved in #405
thboop
No branches or pull requests
Describe the bug
My team has code like:
core.setOutput("test_db_migrations", testDbMigrations ? 1 : 0);
This broke with the 1.2.2 release because it expects the output to be a string.
The error is:
TypeError: (s || "").replace is not a function
and occurs atnode_modules/@actions/core/lib/command.js:66:10)
.To Reproduce
Try to set a number as output.
Expected behavior
The library could do a
.toString()
, or I recommend at least updating the README to make it clear that the output value has to be a string.Screenshots
N/A
Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: