-
-
Notifications
You must be signed in to change notification settings - Fork 92
set-output
command is deprecated
#221
Comments
@actions/core: ^1.10.0 @actions/exec: ^1.1.1 @actions/io: ^1.1.2 close actions-rs#221
We might wait a long time here, given that this project has been unmaintained for almost 2 years: #216 |
For people who want to try an alternative: Currently, I am testing invoke rustup directly in GitHub actions and it seems to be working fine. Also, there is dtolnay's rust-toolchain action. (Maybe named as |
Same, I added a small example here. |
@svartalf 🙏 (could you please ping someone else if you don’t have capacity?) |
@svartalf I'd be happy to take a look at this and send a pull request |
Every CI run we get tons of warnings like: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. It looks like actions-rs/toolchain is unmaintained: actions-rs/toolchain#221 Many projects are switching over to dtolnay/rust-toolchain, let's do the same. Signed-off-by: Sean Young <[email protected]>
Every CI run we get tons of warnings like: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. It looks like actions-rs/toolchain is unmaintained: actions-rs/toolchain#221 Many projects are switching over to dtolnay/rust-toolchain, let's do the same. Signed-off-by: Sean Young <[email protected]>
Every CI run we get tons of warnings like: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. It looks like actions-rs/toolchain is unmaintained: actions-rs/toolchain#221 Many projects are switching over to dtolnay/rust-toolchain, let's do the same. Signed-off-by: Sean Young <[email protected]>
Every CI run we get tons of warnings like: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. It looks like actions-rs/toolchain is unmaintained: actions-rs/toolchain#221 Many projects are switching over to dtolnay/rust-toolchain, let's do the same. Signed-off-by: Sean Young <[email protected]>
Every CI run we get tons of warnings like: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. It looks like actions-rs/toolchain is unmaintained: actions-rs/toolchain#221 Many projects are switching over to dtolnay/rust-toolchain, let's do the same. Signed-off-by: Sean Young <[email protected]>
Every CI run we get tons of warnings like: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. It looks like actions-rs/toolchain is unmaintained: actions-rs/toolchain#221 Many projects are switching over to dtolnay/rust-toolchain, let's do the same. Signed-off-by: Sean Young <[email protected]>
Every CI run we get tons of warnings like: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. It looks like actions-rs/toolchain is unmaintained: actions-rs/toolchain#221 Many projects are switching over to dtolnay/rust-toolchain, let's do the same. Signed-off-by: Sean Young <[email protected]>
The warnings are mainly due to actions-rs/toolchain#221. This commit also fixes additional warnings from newer rules in clippy.
…ompiled binaries (#386) * document hex publish instructions * fix errors in rust CI actions It seems actions-rs/toolchain#221 will not be solved anytime soon. So we switch to `dtolnay/toolchain@v1` to setup Rust in CI. * Add support for prebuild binaries for aarch64-unknown-linux-musl * update Rust release toolchain and Cross dep * update elixir required version in mix.exs and update to v0.8.1-dev * prepare changelog * fix uses of ::set-output in CI as they are deprecated see https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ * use correct name for dtolnay/rust-toolchain@stablex * pipe outputs to $GITHUB_OUTPUT * add target-feature=-crt-static rustflag for aarch64-unknown-linux-musl * bash is Fun * revert .gitignore changes
It seems the `actions-rs` collection of github actions are unmaintained; using the `actions-rs/toolchain@v1` action causes deprecation warnings in Github CI; see <actions-rs/toolchain#221>. So: - Replace the `toolchain` action with `dtolnay/rust-toolchain`. - Just run cargo directly instead of using the `cargo` action. - Get rid of the code coverage check, which was broken anyway.
It seems the `actions-rs` collection of github actions are unmaintained; using the `actions-rs/toolchain@v1` action causes deprecation warnings in Github CI; see <actions-rs/toolchain#221>. So: - Replace the `toolchain` action with `dtolnay/rust-toolchain`. - Just run cargo directly instead of using the `cargo` action. - Get rid of the code coverage check, which was broken anyway.
Bump^ does anyone know the status of these changes?
Warning are still being thrown in actions. |
I've stopped using these actions and rely on |
@AliSajid thank you! Just changed out that 1 line in the actions file and everything works all the same. |
I don't know why everyone wants an external action for this, most use cases simply need a rustup command 🙂 Runners come with rustup installed, here's a usage example I posted a while ago. |
See https://github.co m/actions-rs/toolchain/issues/216#issuecomment-1291613319 and https://github.co m/actions-rs/toolchain/issues/221#issuecomment-1531857380
This PR supersedes actions-rs#220 and actions-rs#222 by applying both fixes at once Fixes actions-rs#219 Fixes actions-rs#221 You can now use this action (and cargo) without deprecations by using a workflow similar to this: on: [push] name: build jobs: check: name: Rust project runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Install latest nightly uses: ThexXTURBOXx/toolchain@master with: toolchain: nightly override: true components: rustfmt, clippy # `cargo check` command here will use installed `nightly` # as it is set as an "override" for current directory - name: Run cargo check uses: richb-hanover/cargo@master with: command: check
Do the checklist before filing an issue:
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
chore: bump @actions deps #222 may solve this problem
Description
The
set-output
command is deprecated and we need to upgrade@actions/core
to v1.10.0Currently, this error will show in every action using this action:
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.
Action output
Following is the raw log
Expected behavior
Upgrade
@actions/core
tov1.10.0
or above (is exist)Additional context
N/A
The text was updated successfully, but these errors were encountered: