question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`set-output` command is deprecated

See original GitHub issue

Do the checklist before filing an issue:

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. 

https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

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:open
  • Created a year ago
  • Reactions:32
  • Comments:6

github_iconTop GitHub Comments

1reaction
AliSajidcommented, Oct 27, 2022

@svartalf I’d be happy to take a look at this and send a pull request

0reactions
kachkaevcommented, Oct 27, 2022
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found