wow-actions / spell-checker

Check and Annotate files with spelling suggestions to help you write better.
MIT License
0 stars 1 forks source link

Return an output for following jobs/steps to use #3

Open munapower opened 8 months ago

munapower commented 8 months ago

Expected Behavior

When the action is run, it always returns success, and in the description it explains if it was Good Spelling or Perfect Spelling. It would be convenient to be able to use the output for the user to determine potential next steps, for example, if they want to fail the job.

Possible Solution

Adding outputs to the action.yml and then add at the end of the run the instructions to core.setOuput ...

Additional Context

image

The Spell Checker was actually defined as a step in a job but it runs as a separate job, which I don't mind, but I do need to get the output.

munapower commented 7 months ago

@bubkoo could you help me? I have been trying to add the functionality and I have tried to test it locally using act. I get to the point where you create the check and I can't get it to move forward from there. So I am trying to test it on github but the yaml uses your "use-app-token" that needs secrets.APP_ID and secrets.PRIVATE_KEY which I am not sure what those values should be. I have pushed the changes to the addOuput branch of my fork. TIA