-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Replace deprecated set-output
command with environment file
#1336
Comments
Does anyone find a fix for this? |
@paolorevillosa Oh I just saw your comment #1218 , what I mentioned above was for workflow and I didn't find a solution for |
I'm experiencing this as well, it seems that the |
@ksaunders the code I'm reading only does it one of the ways. But it keeps running it the old way for one of my actions. Code I'm seeing 1.10.0:
so if One of my actions must be evaluating Seems frustrating that the library which we're supposed to use will sometimes try it in a deprecated way. I'm also pretty bad at debugging github actions so I'm drawing a blank why my action would evaluate the GITHUB_OUTPUT as not there? |
Hey @twohlix 👋 you're correct in that old behaviour is still present in
Does your action have any other dependencies that could affect this? Also if your action is public I'd be happy to have a look :) |
I see <1.10.0 mentioned, but there is no version since: https://www.npmjs.com/package/@actions/core?activeTab=versions. While I agree that the code inside of
So I think we can clear this up if GitHub makes a new release of @actions/core, and I update the dependency here. |
Actually, I must be wrong, because manually inspecting the package shows that it's correct code. I linked the 1.1.0 tag, not the 1.10.0 tag. So I am mistaken. I'll keep looking. We use 1.10.0 here, which is why I am so confused. |
@ksaunders are you 100% sure the warning is coming from your action and not something else within the job? If your action is public also happy to have a look! |
As it turns out, it was a build issue. For some reason the Vercel ncc bundler we were using would not recompile the Sorry for the wild goose chase folks. Thanks for the help. 1.10.0 LGTM. |
I figured out my issue. Was indeed related to a dependency in the action preventing a real upgrade from being packaged. Apologies for the false alarm. |
@rentziass my action is using Reported to the action repo as perl-actions/install-with-cpm#15 async function install_cpm(install_to) {
const version = core.getInput("version");
const url = `https://raw.githubusercontent.com/skaji/cpm/${version}/cpm`;
core.setOutput(`Get cpm from ${url}`);
const cpmScript = await tc.downloadTool(url);
core.setOutput("cpm", cpmScript); here is an example usage where the deprecation warning is visible thanks |
note: I just fixed it using |
Describe the enhancement
In workflow,
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/The text was updated successfully, but these errors were encountered: