Migrate uses of ::set-output in code-analyzer to setOutput. #35895
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
All Submissions:
Changes proposed in this Pull Request:
This is a final set of changes to migrate all uses of
set-output
to write to theGITHUB_OUTPUT
file instead. To do that here we install@actions/core
and callsetOutput
.It should be noted that calling
setOutput
will still throw aset-output
warning right now because that library actually writes toGITHUB_OUTPUT
as well as callingset-output
. See actions/toolkit#1218How to test the changes in this Pull Request:
I think the simplest way to test this is with some basic code modification of the calling functions that print out found changes.
Fork WooCommerce, setup actions. See Remove some usages of set-output #35799 for example
Don't merge this PR but instead, merge this slightly modified branch: https://github.com/woocommerce/woocommerce/tree/dev/test-ca-output This has the same setOutput code, but passes in some dummy change data.
When the CI check runs on your fork, see that it outputs some dummy information for all the lint checks.
FOR PR REVIEWER ONLY: