Skip to content
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

The set-output command is deprecated #26

Open
eBsowka opened this issue Nov 21, 2022 · 1 comment
Open

The set-output command is deprecated #26

eBsowka opened this issue Nov 21, 2022 · 1 comment

Comments

@eBsowka
Copy link
Contributor

eBsowka commented Nov 21, 2022

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/

@eBsowka
Copy link
Contributor Author

eBsowka commented Nov 21, 2022

Examples

A workflow using save-state or set-output like the following

  • name: Save state
    run: echo "::save-state name={name}::{value}"

  • name: Set output
    run: echo "::set-output name={name}::{value}"
    should be updated to write to the new GITHUB_STATE and GITHUB_OUTPUT environment files:

  • name: Save state
    run: echo "{name}={value}" >> $GITHUB_STATE

  • name: Set output
    run: echo "{name}={value}" >> $GITHUB_OUTPUT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant