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

Use core.saveState instead of raw save-state command #126

Merged
merged 1 commit into from
Oct 27, 2022

Conversation

sigprof
Copy link
Contributor

@sigprof sigprof commented Oct 19, 2022

The save-state and set-output commands are deprecated since 2022-10-11 and cause warnings when used in workflows:

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

The saveState function from @actions/core >= 1.10.0 uses the new way to pass data to the post actions ($GITHUB_STATE); use that function instead of sending the deprecated save-state command directly.

Fixes #125.

The 'save-state' and 'set-output' commands are deprecated since
2022-10-11 and cause warnings when used in workflows:

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

The saveState function from @actions/core >= 1.10.0 uses the new way to
pass data to the post actions ($GITHUB_STATE); use that function instead
of sending the deprecated 'save-state' command directly.
@Enzime
Copy link
Contributor

Enzime commented Oct 26, 2022

@domenkozar any chance you can take a look at this? The warning that is output when using cachix/cachix-action@v11 is:

Warning: The save-state 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/

@domenkozar domenkozar merged commit 6a9a34c into cachix:master Oct 27, 2022
@sigprof sigprof deleted the save-state-deprecated branch June 21, 2023 20:05
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

Successfully merging this pull request may close these issues.

save-state command is deprecated since 11th october 2022.
3 participants