cachix-action icon indicating copy to clipboard operation
cachix-action copied to clipboard

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

Open Shawn8901 opened this issue 3 years ago • 0 comments

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 https://github.com/cachix/cachix-action/blob/d035f0e386f7e6337c647d9bf46dad8e13274eb9/src/main.ts#L82

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.

Shawn8901 avatar Oct 13 '22 11:10 Shawn8901