`set-output` command is deprecated
See original GitHub issueDo the checklist before filing an issue:
- Is this related to the
actions-rs
Actions? If you think it’s a problem related to GitHub Actions in general, use the GitHub Community forum instead: https://github.community - You’ve read the Contributing section about bug reporting: https://github.com/actions-rs/.github/blob/master/CONTRIBUTING.md#reporting-bugs
- Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome. #222 may solve this problem
Description
The set-output
command is deprecated and we need to upgrade @actions/core
to v1.10.0
Currently, this error will show in every action using this action:
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files.
Workflow code
This is just my use case. I believe other cases have the same problem.
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
Action output
Following is the raw log
2022-10-14T02:49:04.5320394Z ##[group]Gathering installed versions
2022-10-14T02:49:04.5329776Z [command]/home/runner/.cargo/bin/rustc -V
2022-10-14T02:49:04.5835528Z rustc 1.66.0-nightly (6b3ede3f7 2022-10-13)
2022-10-14T02:49:04.5885042Z ##[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/
2022-10-14T02:49:04.5907869Z ##[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/
2022-10-14T02:49:04.5910612Z [command]/home/runner/.cargo/bin/cargo -V
2022-10-14T02:49:04.6299701Z cargo 1.66.0-nightly (b8f30cb23 2022-10-10)
2022-10-14T02:49:04.6302611Z ##[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/
2022-10-14T02:49:04.6309793Z [command]/home/runner/.cargo/bin/rustup -V
2022-10-14T02:49:04.6351698Z rustup 1.25.1 (bb60b1e89 2022-07-12)
2022-10-14T02:49:04.6352373Z info: This is the version for the rustup toolchain manager, not the rustc compiler.
2022-10-14T02:49:04.6848281Z info: The currently active `rustc` version is `rustc 1.66.0-nightly (6b3ede3f7 2022-10-13)`
2022-10-14T02:49:04.6862719Z ##[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/
2022-10-14T02:49:04.6864583Z ##[endgroup]
Expected behavior
Upgrade @actions/core
to v1.10.0
or above (is exist)
Additional context
N/A
Issue Analytics
- State:
- Created a year ago
- Reactions:32
- Comments:6
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 >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 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 >How to fix set-output command is deprecated in Github Action
Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files.
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 FreeTop 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
Top GitHub Comments
@svartalf I’d be happy to take a look at this and send a pull request
@AliSajid https://github.com/actions-rs/toolchain/pull/222 should solve it