`set-output` will be deprecated soon
See original GitHub issueDescribe the bug Recently we started seeing these warnings on github actions -
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/
Looks like the action is internally using set-output command which will be disabled soon by github.
To Reproduce Steps to reproduce the behavior:
- Run a workflow using ncipollo/release-action.
Expected behavior Warning should not be seen.
Additional context This action is really important for us and it is being used in an important workflow.
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Deprecating save-state and set-output commands
Starting 1st June 2023 workflows using save-state or set-output commands via stdout will fail with an error. Patching your actions and workflows.
Read more >How to Fix the set-output GitHub Actions Deprecation Warning
The set-output command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information ...
Read more >The `set-output` command is deprecated and will be disabled ...
Warning: The set-output command is deprecated and will be disabled soon. Please upgrade to using Environment Files.
Read more >How to Patch the Deprecated set-output in GitHub Workflows ...
GitHub recently deprecated the set-output workflow command on October 11, which had been the way for workflow steps, as well as for ...
Read more >Dealing with Set-Output Depreciation Warnings in Terraform ...
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I think setOutput is still the correct method to use, if you look closely at the implementation you will note that it writes to the new, correct location if GITHUB_OUTPUT exists in the environment. There real question here is why that variable doesn’t seem to exist for some folks.
I’m away from my computer from a few days but I suspect this variable may not be present if you aren’t correctly indicating that you want to use outputs from this step (or using them at all). If that’s the case I’ll add a check for that variable as well and avoid setting output if you don’t have them setup.
Oh man, I believe I got it all wrong.
The warning is actually raised twice within the release job. GitHub will just mention the job, not the actual step that’s causing the warning, but the “twice” part should have clued me in that it might actually be the two
actions/download-artifact@v3steps that are causing this.As it turns out, it is very, very much likely to be the case:
https://github.com/actions/download-artifact/issues/185
I’m so sorry, I shouldn’t have let myself dismiss that possibility just because that action belongs to one of GitHub’s very own (?)
actionsrepositories. 🤦♂️