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

save-state command is deprecated since 11th october 2022. #125

Closed
Shawn8901 opened this issue Oct 13, 2022 · 0 comments · Fixed by #126
Closed

save-state command is deprecated since 11th october 2022. #125

Shawn8901 opened this issue Oct 13, 2022 · 0 comments · Fixed by #126

Comments

@Shawn8901
Copy link

Shawn8901 commented Oct 13, 2022

Since 11th of October the save-state command the action is using is causing a deprecation warning

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/
Here the changelog as clickable url:

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

The command is currently used here

coreCommand.issueCommand('save-state', {name: 'isPost'}, 'true')

An update to a non deprecated version would be great.
As i have absolute no experience in developing actions for GH i can sadly not provide a own PR for that.

edit:
wild guess is that this method should be used: https://github.com/actions/toolkit/blob/ffb7e3e14ed5e28ae00e9c49ba02b2764d57a6b7/packages/core/src/core.ts#L352
It was changed on v1.10 which is already used by cachix-action.

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 a pull request may close this issue.

1 participant