Closed shay-ul closed 1 year ago
Hi @peterjgrainger I've been using this awesome action and it helps me a lot :) Are you aware of this issue? Any chance you could take a look?
Yeah, sure @shay-ul. Seems pretty straightforward
@shay-ul released version v2.3.0
have a look and see if that sorts it out.
I've added a new warning to stop using the set output, I'll remove this on the next major release of the action.
@peterjgrainger I think that instead of removing the output from the action you can simply update @actions/core package to version 1.10.0. The set-output thing was fixed in this pull request.
You'll still be able to use core.setOutput but it won't use the deprecated set-output
command.
@phandrysik-fp what happens if someone is relying on the output? Is it a breaking change?
That's precisely my point, I think that it's not a breaking change...
I found more info on the topic here https://github.com/orgs/community/discussions/35994 I haven't tested it yet but it should be easy to test in a workflow if the output of your action is still there.
Hey!
I just started to use this action and saw the same problem.
@peterjgrainger you don't need to switch to using environment variables, you can still use output; only set-output
got deprecated. Like that, you would not introduce a breaking change.
Have a look here (bottom of the page): https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/#examples
@phandrysik-fp what happens if someone is relying on the output? Is it a breaking change?
@peterjgrainger, it's not a breaking change. If you change the way you output, all workflow users will just as normal :)
Here are the current warnings being seen as of today 11.21.22:
It would be great if we could get updates for this ASAP.
Thanks
Yea, no need to mess around with ENV variables. Just update actions/core
to a newer version where setOutput
is correctly implemented and remove the BRANCH_CREATED
again.
@kuhnroyal @secondmanveran see latest release v2.4.0.
No warnings :)
Thanks mate.
Hi, when running this action, Github Actions shows two errors:
Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: peterjgrainger/action-create-branchShow less 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/How to fix: