How does the caller of a custom action access its outputs?

My company has started creating and using custom actions, and I’m expanding that use to modularize our more complex GitHub Action workflows. The docs are pretty clear on how to provide outputs in the custom actions, but do not include examples of how the workflow invoking the action can reference those outputs.

Anyone out there with example syntax?

Thanks-

 Bob

You can access the outputs through the steps context. An example in the documentation is here, which also shows how to turn step outputs into job outputs in case you need to use them across jobs.

Thanks, but this is not my issue. Our workflows are complex, and use multiple jobs which are very nicely synced; outputs and inputs are passed between jobs with no problem.

The issue which is plaguing me at the moment regards the use of custom actions in a private repository/library that we have been using without problems… but the action I am adding is the first which specifies outputs as well as inputs.

The calling workflow checks out the repository containing our private actions, and triggers the new action I have added. The action received the specified inputs and executes successfully… but the calling workflow fails on a workflow step (undocumented anywhere I have looked) called “Post .” The error message is this:

Error: Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under '/home/runner/work/identity-suite/identity-suite/.github/actions/build_and_push_image'. Did you forget to run actions/checkout before running your local action?

That is pretty puzzling, since the action in question has just been successfully executed. This would seem to indicate some sort of issue with scope, but with no documentation whatsoever, I’ve had no luck in diagnosing what the root cause is for this failure.

I have a support request posted (unanswered since last Friday morning). If you can shed any light on this, that would be most appreciated.