actions-ecosystem / action-size

📏 GitHub Action to determine a label to be added based on PR's size

Home Page:https://github.com/marketplace/actions/actions-ecosystem-size

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deprecation warning for using `set-output` command

namurphy opened this issue · comments

What happened

I got the following warning message when using this action:

Warning: 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/

The link is to this blog post, which describes how to fix it. The post says that the warning will turn into an error starting on 2023 June 1.

What you expected to happen

There should be no warning.

How to reproduce it

By setting this action up in a repository, after updating actions/checkout@v3.

The PR I found this warning message in is: PlasmaPy/PlasmaPy#2064

Thank you!

I didn't see a place where set-output gets used in this repo, so I'm wondering if it's in an upstream repo. 🤔

There were also some changes about the version of node.js changing, which is discussed in actions-ecosystem/action-add-labels#434

Another possibility is that one of the dependabot PRs might also fix this.

To follow up with some news on this, the lines in this blog post that said the commands would be deleted have been struck through. The commands still remain deprecated, though.

I believe the solution is to bump the actions/core version to >=1.10 per the posting, as this repo does indeed use core.setOutput which backends into that call and is migrated to the new form automatically if my understanding is correct. #258 would address this.