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

Warning: The set-output command is deprecated and will be disabled soon. #233

Closed
maggie44 opened this issue Nov 9, 2022 · 2 comments
Closed

Comments

@maggie44
Copy link
Contributor

maggie44 commented Nov 9, 2022

There are two warnings in the logs of builds like the below when using the action.

Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

Here is the GitHub notification on it: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

I can't see any instances of set-output in the code, so it is probably just a matter of bumping a few packages up to start using the versions that have updated this.

Here is an example for @actions/core: actions/toolkit#1218 (comment)

@klutchell
Copy link
Collaborator

klutchell commented Dec 14, 2022

We are calling the setOutput function from the @actions/core library, so we need to bump it to 1.10.0 as you said

core.setOutput("version", rawVersion);
core.setOutput("release_id", releaseId);

Action authors who are using the toolkit should update the @actions/core package to v1.10.0 or greater to get the updated saveState and setOutput functions.

@klutchell
Copy link
Collaborator

klutchell commented Dec 14, 2022

This PR should have fixed it, but we closed it.
#221

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

No branches or pull requests

2 participants